What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Skype & Live Messenger » My new website

My new website
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: My new website
quote:
Originally posted by hmaster
quote:
Originally posted by -dt-
code:
code:
var m =document.getElementById('marquee');
to insert the maquee into the div.

Why, the other way works fine, its not document.write its basically like include()
IT IS DOCUMENT.WRITE LOOK AT YOUR CODE!!!!!!!!!!!!!!

innerHTML is alot better way then document.write , document.write is stupid we have a DOM for a reson people , by using document.write your basicly saying "hey i sure as hell dont care for the DOM so lets write random crap to it and hope it parses it right"
another better way (a WAY better way) would be a full DOM approch with
code:
var orginalElement =document.getElementById('marquee');
var mElement = document.createElement('marquee');
mElement.setAttribute('direction','left');
mElement.setAttribute('style','height:20px');
mElement.setAttribute('loop','30');
mElement.setAttribute('scrollamount','2');
mElement.setAttribute('behavior','slide');
orignalElement.appendChild(mElement);


also YOUR DOCUMENT ISNT XHTML VALID if you cheat like this (thats what your doing is cheating the checker)

http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite
http://ln.hixie.ch/?start=1091626816&count=1
http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html
[Image: dt2.0v2.png]      Happy Birthday, WDZ
09-24-2005 03:59 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
My new website - by Yousef on 09-24-2005 at 08:49 AM
RE: My new website - by user35870 on 09-24-2005 at 08:52 AM
RE: My new website - by M73A on 09-24-2005 at 08:57 AM
RE: My new website - by -dt- on 09-24-2005 at 09:02 AM
RE: My new website - by Yousef on 09-24-2005 at 09:06 AM
RE: My new website - by -dt- on 09-24-2005 at 09:15 AM
RE: My new website - by M73A on 09-24-2005 at 09:34 AM
RE: My new website - by Yousef on 09-24-2005 at 02:06 PM
RE: My new website - by hmaster on 09-24-2005 at 02:12 PM
RE: My new website - by Yousef on 09-24-2005 at 02:35 PM
RE: My new website - by tony on 09-24-2005 at 02:42 PM
RE: My new website - by ShawnZ on 09-24-2005 at 02:57 PM
RE: My new website - by Yousef on 09-24-2005 at 03:01 PM
RE: My new website - by hmaster on 09-24-2005 at 03:04 PM
RE: My new website - by Yousef on 09-24-2005 at 03:23 PM
RE: My new website - by _Humphreys on 09-24-2005 at 03:35 PM
RE: My new website - by -dt- on 09-24-2005 at 03:38 PM
RE: My new website - by hmaster on 09-24-2005 at 03:45 PM
RE: My new website - by -dt- on 09-24-2005 at 03:59 PM
RE: My new website - by Yousef on 09-24-2005 at 04:03 PM


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