Log In · Register

 
Why can't I put Javascript here?, And is there any way to fix it?
MeLMeL389
post 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? happy.gif

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? cry.gif *sniff* Okay, thank you so much. <3
 
 
Start new topic
Replies
MeLMeL389
post Aug 26 2004, 05:07 PM
Post #2


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. :)
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: