| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Dec 2004
Posts: 63
![]() | 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? |
| |