How To Enlarge Image onMouseOver using PHP?

Thread Solved

Join Date: Nov 2007
Posts: 86
Reputation: sagedavis is an unknown quantity at this point 
Solved Threads: 6
sagedavis sagedavis is offline Offline
Junior Poster in Training

Re: How To Enlarge Image onMouseOver using PHP?

 
0
  #11
Mar 30th, 2008
the answer is that Pop is not defined. you are calling a function called POP in your onClick function and I see no javascript function (because it must be a function in order to use it). I do not see you using an external javascript either....

so, you've got no internal javascript going on, and no external javascript code (other than declairing a couple of variables) but no javascript functions.

Sage
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 107
Reputation: scorpionz is an unknown quantity at this point 
Solved Threads: 0
scorpionz scorpionz is offline Offline
Junior Poster

Re: How To Enlarge Image onMouseOver using PHP?

 
0
  #12
Apr 3rd, 2008
Thanks a lot sagedavis for providing me such useful guide lines of correcting my code
Finally i fixed it up up with this code

  1.  
  2. <html>
  3. <head>
  4. <title>My Test</title>
  5.  
  6. <script src="/test_files/scripts/PopBox.js" type="text/javascript"></script>
  7.  
  8. <script type="text/javascript">
  9. popBoxWaitImage.src = "images/spinner40.gif";
  10. popBoxRevertImage = "images/magminus.gif";
  11. popBoxPopImage = "images/magplus.gif";
  12. </script>
  13. <style type="text/css">
  14. .PopBoxImageSmall
  15. {
  16. border: none 0px #ffffff;
  17. cursor: url("images/magplus.cur"), pointer;
  18. }
  19. .PopBoxImageLarge
  20. {
  21. border: solid 1px #999999;
  22. cursor: url("images/magminus.cur"), pointer;
  23. }
  24. .position-box{
  25. position:absolute;
  26. top:100px;
  27. left:100px;
  28. }
  29. </style>
  30. </head>
  31.  
  32. <body>
  33. <table class="position-box" border="1">
  34. <tr>
  35. <td >
  36. <img
  37. src="images/ARY0144_small.jpg" alt="" width="399" height="253"
  38. class="PopBoxImageSmall" id="imgBlueScoop"
  39. title="Click to magnify/shrink"
  40. onclick="return Pop(this,50,'PopBoxImageLarge');"
  41. pbsrc="images/ARY0144_small.jpg"
  42. pbCaption="Nice Try" />
  43.  
  44. </td>
  45. </tr>
  46. </table>
  47. </body>
  48. </html>

Infact this thread will be so much helpful though.....

Thanks and Regards to all those who participated with me in this thread...

Thanks and Regards
ScorpionZ
Last edited by cscgal; Apr 3rd, 2008 at 2:01 am. Reason: Fixed code tag
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 86
Reputation: sagedavis is an unknown quantity at this point 
Solved Threads: 6
sagedavis sagedavis is offline Offline
Junior Poster in Training

Re: How To Enlarge Image onMouseOver using PHP?

 
0
  #13
Apr 7th, 2008
You're welcome,
glad I could help.
sage
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC