Jump to content

why not hover???


robert_gsfame

Recommended Posts

<?php if($text=="aaa"){echo "<a href=# onmouseover=changepic()  onmouseout=changepic2()>";}else{};?><?php if($text=="aaa"){echo "<img src=bar/column.gif border=0 id=column/><img src=bar/column1.gif border=0 id=column1 style='display:none'/>";}else{echo "<img src=bar/column1.gif border=0 id=column1/>";}?><?php if($text=="aaa"){echo "</a>";}?>

 

and javascript code

 

  <script type="text/javascript">

  function changepic(){

  document.getElementById('column').style.display="none"

  document.getElementById('column1').style.display=""

  }

  </script>

    <script type="text/javascript">

  function changepic2(){

  document.getElementById('column1').style.display="none"

  document.getElementById('column').style.display=""

  }

  </script>

 

why wont the image hover????can anyone help me

 

Thx

Link to comment
https://forums.phpfreaks.com/topic/198729-why-not-hover/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.