View previous topic - View next topic |
Author |
Message |
Unknown Moira's Silly Little Slave Bitch
Joined: 19 Jul 2005 Posts: 82 Location: Behind you...
|
Posted: Fri May 12, 2006 8:22 pm Post subject: Div Writting Function |
[quote] |
|
http://www.shadowland.cc/dwf.html
You'll have to view the source to get the idea... _________________ Most people would succeed in small things if they were not troubled with such great ambitions.
|
|
Back to top |
|
|
LeoDraco Demon Hunter
Joined: 24 Jun 2003 Posts: 584 Location: Riverside, South Cali
|
Posted: Fri May 12, 2006 9:22 pm Post subject: |
[quote] |
|
Barring the utter stupidity of inlining the styles, the gigantic method call, and totally circumventing the DOM, I suppose that could be a neat effect for some sort of browser game. Then again, going to such an extent just to layout things which are already handled --- dynamically, nonetheless --- better by the browser is a bit absurd.
The implementation also suffers from a major drawback (which probably is not an issue, if the site is specifically geared towards game development): disabling javascript will cause nothing to be rendered. _________________ "...LeoDraco is a pompus git..." -- Mandrake
Last edited by LeoDraco on Fri May 12, 2006 9:45 pm; edited 1 time in total
|
|
Back to top |
|
|
Unknown Moira's Silly Little Slave Bitch
Joined: 19 Jul 2005 Posts: 82 Location: Behind you...
|
Posted: Fri May 12, 2006 9:29 pm Post subject: |
[quote] |
|
hmm, i see your point... hmm ok well just forget bout it then _________________ Most people would succeed in small things if they were not troubled with such great ambitions.
|
|
Back to top |
|
|
RuneLancer Mage
Joined: 17 Jun 2005 Posts: 441
|
Posted: Fri May 12, 2006 9:32 pm Post subject: |
[quote] |
|
Yeow. That's way too many parameters. If you're going to use that approach, you should try to reduce the number of parameters being passed to your function.
Ideally, you could just pass a single string which gets placed in a style="$1", but if you want to abstract the use of actual styles and would rather use direct parameters, you could limit the margin, padding, border, and possible font parameters into a single string each (ie, margin:"5px 0px 0px 10px"). _________________ Endless Saga
An OpenGL RPG in the making. Now with new hosting!
|
|
Back to top |
|
|