home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Need Help w/ Using java/PHP in same page..

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1726
Discussions: 200,957, Posts: 2,379,506, Members: 246,328
Old June 4th, 2004, 04:03 AM   Digg it!   #1 (permalink)
Member
 
WBRchris's Avatar
 
Join Date: Nov 2001
Location: Columbia, SC USA
Posts: 270
Need Help w/ Using java/PHP in same page..

ok.. my problem is this.. i need to load two .js files into the same page one is date.js and the other is rollover.js one handles my time and date and the other is for my nav menu rollovers.. now my question is this.. w/ the script like so..
Code:
<script language="javascript" src="date.js"></script>
<script language="javascript" src="rollover.js"></script>
the date script will load but not the rollovers.. but if i leave off the date script it will load the rollovers.. how do i get this to load both scripts and have them both work correctly? the scripts are located @ http://www.racinusa.com/themes/e-xoops/date.js and http://www.racinusa.com/themes/e-xoops/rollover.js

thanks in advance for your assistance
__________________
"I play from the heart, when I think about it, it loses its soul.." -The late Stevie Ray Vaughan
Visit MySpace!

Last edited by WBRchris : June 4th, 2004 at 04:08 AM.
WBRchris is offline   Reply With Quote
Old June 4th, 2004, 05:35 AM     #2 (permalink)
Member
 
WBRchris's Avatar
 
Join Date: Nov 2001
Location: Columbia, SC USA
Posts: 270
fixed.. here's what i had to do..

Code:
<SCRIPT LANGUAGE="JavaScript" src="http://www.racinusa.com/themes/e-xoops/date.js"></script>
<script type="text/javascript">

/*****************************************
* Dissolving Image Rollover- By Roy Whittle (http://www.javascript-fx.com/)
* Featured on/available at http://www.dynamicdrive.com/
* This notice must stay intact for use
*****************************************/

//Generate transition CSS (transition=0 to 23)
document.write('<STYLE TYPE="text/css">.imgTrans{ filter:revealTrans(duration=0.4,transition=12) }</STYLE>');

//Uncomment the next line for fading rollovers instead of dissolving:
//document.write('<STYLE TYPE="text/css">.imgTrans{ filter:blendTrans(duration=0.4) }</STYLE>');

var onImages=new Array();
function Rollover(imgName, imgSrc)
{
	onImages[imgName] = new Image();
	onImages[imgName].src = imgSrc;
}

function turnOn(imgName){ 
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].apply();
	document.images[imgName].offSrc = document.images[imgName].src;
	document.images[imgName].src    = onImages[imgName].src;
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].play();
}

function turnOff(imgName){ 
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].stop();
	document.images[imgName].src = document.images[imgName].offSrc;
}

//Specify name of participating images, plus paths to their onMouseover replacements:
Rollover("home",  "<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_home_o.gif");
Rollover("account", "<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_account_o.gif");
Rollover("downloads", "<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_downloads_o.gif");
Rollover("links", "<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_links_o.gif");
Rollover("forums", "<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_forum_o.gif");
Rollover("tutorials", "<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_tutorials_o.gif");
Rollover("faqs", "<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_faq_o.gif");
Rollover("logout", "<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_logout_o.gif");
</script>
</head>

<body onLoad="startclock();" background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/g-back.gif">

<?php OpenWaitBox();?>
<table width="774" border="0" align="center" cellspacing="0" cellpadding="0"><tr><td>

<table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">
        <tr>
          <td width="160" height="99" align="left" valign="middle" class="exoops"><a href="<?php echo XOOPS_URL.'/';?>"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/logo.gif" alt="<?php echo $meta['slogan'];?>" width="160" height="99" border="0" align="left" /></a></td>
<td colspan="2"><div align="center"><?php showbanner();?></div></td>
</tr></table>

<table width="100%" border="0" align="center" cellspacing="0" cellpadding="0"><tr>

<td colspan="2" align="center" valign="bottom" background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_bg.gif">
<table border="0" cellpadding="0" cellspacing="0">
              <tr class="topmenu"> 
			    <td width="74" height="16"><a href="<?php echo XOOPS_URL;?>/"onMouseOver="turnOn('home');"
				onMouseOut="turnOff('home');"><img name="home" class="imgTrans" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_home.gif" border="0" width="74" height="16" alt="<?php echo _TH_HOME;?>" /></a></td>
			    <td width="74" height="16"><a href="<?php echo XOOPS_URL;?>/user.php"onMouseOver="turnOn('account');"
				onMouseOut="turnOff('account');"><img name="account" class="imgTrans" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_account.gif" border="0" width="74" height="16" alt="<?php echo _TH_ACCOUNT;?>" /></a></td>
				<td width="74" height="16"><a href="<?php echo XOOPS_URL;?>/modules/mydownloads/"onMouseOver="turnOn('downloads');"
				onMouseOut="turnOff('downloads');"><img name="downloads" class="imgTrans" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_downloads.gif" border="0" width="74" height="16" alt="<?php echo _TH_DOWNLOADS;?>" /></a></td>
 				<td width="74" height="16"><a href="<?php echo XOOPS_URL;?>/modules/mylinks/"onMouseOver="turnOn('links');"
				onMouseOut="turnOff('links');"><img name="links" class="imgTrans" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_links.gif" border="0" width="74" height="16" alt="<?php echo _TH_LINKS;?>" /></a></td>
				<td width="74" height="16"><a href="<?php echo XOOPS_URL;?>/modules/newbb_plus/"onMouseOver="turnOn('forums');"
				onMouseOut="turnOff('forums');"><img name="forums" class="imgTrans" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_forum.gif" border="0" width="74" height="16" alt="<?php echo _TH_FORUMS;?>" /></a></td>
				<td width="74" height="16"><a href="<?php echo XOOPS_URL;?>/modules/sections/"onMouseOver="turnOn('tutorials');"
				onMouseOut="turnOff('tutorials');"><img name="tutorials" class="imgTrans" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_tutorials.gif" border="0" width="74" height="16" alt="<?php echo _TH_TUTORIALS;?>" /></a></td>
				<td width="74" height="16"><a href="<?php echo XOOPS_URL;?>/modules/xoopsfaq/"onMouseOver="turnOn('faqs');"
				onMouseOut="turnOff('faqs');"><img name="faqs" class="imgTrans" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_faq.gif" border="0" width="74" height="16" alt="<?php echo _TH_FAQ;?>" /></a></td>
				<td width="74" height="16"><a href="<?php echo XOOPS_URL;?>/user.php?op=logout"onMouseOver="turnOn('logout');"
				onMouseOut="turnOff('logout');"><img name="logout" class="imgTrans" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/nav_logout.gif" border="0" width="74" height="16" alt="<?php echo _TH_LOGOUT;?>" /></a></td>
              </tr>
            </table>
</td>
hope that helps any of you guys that run into some probs..
WBRchris is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you link backwards Dmack_901 Graphic Design and Digital Photography 6 December 17th, 2003 07:28 AM
Page #ing in MS Word 2K ZENYO Applications and Operating Systems 2 January 29th, 2003 12:37 PM
HELP needed with simple javascript kalm Webmastering and Programming 6 May 3rd, 2002 11:04 AM
need advice, please edwelly IMO Community 2 February 26th, 2002 05:30 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2955)
The disrespect of Obama by Russian .. (41)
Wireless Televisions. (12)
CPU fan stops spinning randomly (9)
Regular Build (11)
windows 7 problem (7)
Laptop with wireless problem. (5)
Is the PSU I received dead? (12)
Print spooler problem (15)
windows vista security holes (11)
radeon x850xt platinum & shader.. (6)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
Recent Discussions
Multiple Restarts Required at Boot (3)
Open With ..... Win7 (1)
Kingston Bluetooth Dongle Driver (0)
webcam (0)
upgrade for hp a6101 (0)
windows vista security holes (11)
Laptop with wireless problem. (5)
Modern Warfare 2: Who Bought It? (64)
tv not turn on-makes clicking sound (2)
CPU fan stops spinning randomly (9)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Virus advise (8)
My monitor won't turn on after instal.. (1)
Internet Lost (3)
Dept. of HS: NSA 'Helped' Develop Vis.. (16)
Point and Shoot Camera Suggestions. (4)
Ideal cheap graph card for PC-Gaming? (18)
radeon x850xt platinum & shader 3 (6)
Graphics Card Upgrade Question (4)
For Sale BFG GTX285 OC2 with 10 year .. (3)
How to convert MP3's (4)
Wireless Televisions. (12)
Hp Artist Edition + Matching Bag (0)


All times are GMT -4. The time now is 08:11 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28