NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page More javascript help

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 01-07-2005, 06:39 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Dec 2004
Posts: 63
Bryan792 is an unknown quantity at this point
 



More javascript help


well this is what i have:

<?

srand((double)microtime()*1000000);
$random = rand(1,30)*2;
$off = $random - 1;
echo "$off";
?>

<a href="" onMouseOver="document.rollover.src=image<?php echo $off; ?>.src" onMouseOut="document.rollover.src=image<?php echo $random; ?>.src" ><img src="carthumb/Output<?php echo $off; ?>.jpg" border=0 name="rollover"></a>

it uses javascript but u dont rlly need to see that. it is a simple image change on mouseover javascript. So when it is Image1 then it shows image 1 and so on....

it partially works..this works:

<img src="carthumb/Output<?php echo $off; ?>.jpg" border=0 name="rollover">

but this doesnt:

<a href="" onMouseOver="document.rollover.src=image<?php echo $off; ?>.src" onMouseOut="document.rollover.src=image<?php echo $random; ?>.src" >
????: NamePros.com http://www.namepros.com/programming/63826-more-javascript-help.html

when i hover over the image it becomes a cracked image but it is still a link to gt.php which is the name of this file
how do i fix it?
Bryan792 is offline  
Old 01-10-2005, 06:17 PM THREAD STARTER               #2 (permalink)
NamePros Member
Join Date: Dec 2004
Posts: 63
Bryan792 is an unknown quantity at this point
 




actually try going to this site which is mine to see what's wrong...
Last edited by Bryan792; 01-11-2005 at 05:52 PM.
Bryan792 is offline  
Closed Thread


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


 
All times are GMT -7. The time now is 02:34 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger