how to run two different script on one page

This is a discussion on "how to run two different script on one page" within the JavaScript Forum section. This forum, and the thread "how to run two different script on one page are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 22nd, 2006, 23:19
New Member
Join Date: Jul 2006
Location: london
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
how to run two different script on one page

Hello everyone,
I am trying to use one dhtml script and one authomatic date script on one page.The date script works fine but the dhtml ticker doesnt work.
i state the scripts below,for you to look at if you may.
I thank for any suggestions & assistance in advance


script1
<script language = "JavaScript">
var now = new Date();
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thu rsday","Friday","Saturday");
var monNames = new Array("January","February","March","April","May"," June","July","August","September","October","Novem ber","December");
document.write("" + dayNames[now.getDay()] + " " + monNames[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear());
</script>

script2
<td height="97" colspan="12" valign="top"><p>
<!-- Ticker start -->
<table border="0" cellspacing="0" cellpadding="0" width="605
">
<tr height="16">
<FORM name="ticker1">
<td class="ticker_font"
align="center" onClick="revert_ticker('ticker1')" onMouseOver="stop_ticker('ticker1')"
onMouseOut="start_ticker('ticker1')">
<input name="scroll" class="ticker_font" size="141">
<script language="javascript">
init_ticker("ticker1", " SimplytheBest DHTML Scripts - a large collection of selected DHTML scripts and Javascripts. Most scripts are free to use and clearly explained ", 100, 1);
</script>
</td>
</FORM>
</tr>
</table>
<!-- Ticker end -->&nbsp;</p>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 23rd, 2006, 21:12
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: how to run two different script on one page

Could be because it's trying to call functions that you don't have scripted anywhere.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
run, two, different, script, page

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
send data from php page to jsp page ktsirig PHP Forum 2 May 2nd, 2008 13:00
Green bar of colour at bottom of page gets bigger the more page is extended pixelgirl Web Page Design 1 Apr 1st, 2008 01:27
internal navigation, Linking from one page to a specific div in another page. Oak Web Page Design 5 Feb 8th, 2008 22:54
Linking an outside page back to previous framed page MJustison Starting Out 1 Oct 18th, 2007 17:49
A gap appears beween the Page Title and the Body Content of the page. sovereign6 Web Page Design 6 Dec 18th, 2006 19:14


All times are GMT. The time now is 23:25.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved