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
I used:

    code:inc_syndicate_js =
    '<marquee direction="left" height="20px" loop="30" scrollamount="2" scrolldelay="2" behavior="slide">'
    + 'New site now up!'
    + '</marquee>';

    // end_var_declaration
    document.write(inc_syndicate_js);


And then in the webpage I used

    code:
    <script type="text/javascript" src="marquee.js"></script>



OH GOD!!!!!!!!!!!!!!!!!!!!!!!!!!
document.write = evil! it should never be used in xhtml docs since it can presume it needs to write to a new document and clear your page then start writing.


use something like

code:
var m =document.getElementById('marquee');

inc_syndicate_js =
'<marquee direction="left" height="20px" loop="30" scrollamount="2" scrolldelay="2" behavior="slide">'
+ 'New site now up!'
+ '</marquee>';

// end_var_declaration
m.innerHTML = inc_syndicate_js;


to insert the maquee into the div.
[Image: dt2.0v2.png]      Happy Birthday, WDZ
09-24-2005 03:38 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