What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » im n00b

im n00b
Author: Message:
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
34 / Male / –
Joined: Jun 2004
RE: im n00b
quote:
Originally posted by Supersonicdarky
wtf, why doesnt it work when above divs? ^o)
Because the JS is excecuted when the parser gets to that node, at which point the DIVs don't exist, because the page hasn't loaded fully. Therefore when the JS is excecuted the DIVs can't be found, but when the script node is below the DIVs then they do exist.
You can have the JS above the divs by using onload like Nathen said.

quote:
Originally posted by Napbree
document.getElementById('a').style.width="300px";

should be

document.getElementById('a').innerHTML = "width='300px';";
nonononono way!
The first one is right, the second one will set the contents of the a div to "width='300px';", and wont change the width :P
innerHTML basically lets you access and change all the html within the node.
06-08-2007 09:33 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
im n00b - by Supersonicdarky on 06-08-2007 at 07:57 PM
RE: im n00b - by Nathan on 06-08-2007 at 08:01 PM
RE: im n00b - by Supersonicdarky on 06-08-2007 at 08:04 PM
RE: im n00b - by Nathan on 06-08-2007 at 08:05 PM
RE: im n00b - by WDZ on 06-08-2007 at 08:43 PM
RE: im n00b - by Supersonicdarky on 06-08-2007 at 09:03 PM
RE: im n00b - by Nathan on 06-08-2007 at 09:04 PM
RE: im n00b - by Supersonicdarky on 06-08-2007 at 09:05 PM
RE: im n00b - by Plik on 06-08-2007 at 09:33 PM
RE: im n00b - by Felu on 06-09-2007 at 10:44 AM
RE: im n00b - by markee on 06-09-2007 at 11:35 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On