»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 07-06-2003, 04:20 PM   #1 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Ooltewah, TN
Posts: 483
LittleKing is on a distinguished road
Send a message via Yahoo to LittleKing
Dreamweaver template script error

For the site I'm developing I'm using DreamWeaver templates with PHP.

I have a javascript that I only want to run on the first page. I didn't write the script, got it offline, so I don't know the interworkings of it.

In the setup directions, it said it needed the onload="startclock ()" attribute in the <body> tag.

I also have a jscript file that is included in index page which hold the code for the countdown timer.

My problem is every page has to have the onload="startclock ()" attribute because it is in the template and can't be added else where. Since not all the page have the jscript included it gives an error.

Is there a way to have the script work without having to have the onload="startclock ()" attribute in the <body> tage?

Thanks,
LK


Last edited by LittleKing; 07-08-2003 at 11:25 AM.
LittleKing is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 04:22 AM.