Why can't I put Javascript here?, And is there any way to fix it? |
![]() ![]() |
Why can't I put Javascript here?, And is there any way to fix it? |
Aug 26 2004, 04:51 PM
Post
#1
|
|
![]() Newbie ![]() Group: Member Posts: 5 Joined: Aug 2004 Member No: 43,927 |
Hi, I'm new... so I hope you can help me?
OK. This is one of my extra custom modules. (Actually, it's the code from this page.) <!-- begin code provided by createblog.com --> <script> titleContent = 'Until My Birthday'; moduleContent = 'My javascript countdown goes here'; sub = subTitle.parentNode.parentNode.parentNode.parentNode.parentNode sub.insertAdjacentHTML('beforeBegin','<table border="1" cellspacing="0" cellpadding="4" width="100%" class="left"><tr><th valign="top" align="left" class="left">' + titleContent + '</th></tr><tr><td valign="top" class="left">' + moduleContent) sub.insertAdjacentHTML('beforeBegin','<BR>'); </script> <!-- end code provided by createblog.com --> In the place where I said: "My javascript countdown goes here", I had this there. <script LANGUAGE="JavaScript"> var now = new Date(); var then = new Date("March 1, 2005"); var gap = then.getTime() - now.getTime(); gap = Math.floor(gap / (1000 * 60 * 60 * 24)); document.write("<b>My Birthday:</b> " + gap + " days"); </SCRIPT> I found ^that^ cool little script, but I can't seem to use it! It doesn't show up in that extra custom module. Does the module not like Javascript or something? If you know why this happening, can you please reply & tell me if there's a way to fix it? |
|
|
|
Aug 26 2004, 04:58 PM
Post
#2
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 3,826 Joined: Jan 2004 Member No: 2,330 |
try putting all of that in the website stats section
|
|
|
|
Aug 26 2004, 05:07 PM
Post
#3
|
|
![]() Newbie ![]() Group: Member Posts: 5 Joined: Aug 2004 Member No: 43,927 |
That's where I put it all, but it still doesn't work. Thanks for replying though. :)
|
|
|
|
![]() ![]() |