More javascript help

SpaceshipSpaceship
Watch

Bryan792

Established Member
Impact
0
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" >

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?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
actually try going to this site which is mine to see what's wrong...
 
Last edited:
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Live Options
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back