NameSilo

More javascript help

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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
Close
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
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back