User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 373,098 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,880 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2150 | Replies: 12 | Solved
Reply
Join Date: Nov 2007
Posts: 86
Reputation: sagedavis is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 6
sagedavis sagedavis is offline Offline
Junior Poster in Training

Re: How To Enlarge Image onMouseOver using PHP?

  #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  
Join Date: Sep 2006
Posts: 84
Reputation: scorpionz is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
scorpionz scorpionz is offline Offline
Junior Poster in Training

Re: How To Enlarge Image onMouseOver using PHP?

  #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>
  49.  

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 1:01 am. Reason: Fixed code tag
Reply With Quote  
Join Date: Nov 2007
Posts: 86
Reputation: sagedavis is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 6
sagedavis sagedavis is offline Offline
Junior Poster in Training

Re: How To Enlarge Image onMouseOver using PHP?

  #13  
Apr 7th, 2008
You're welcome,
glad I could help.
sage
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Other Threads in the PHP Forum

All times are GMT -4. The time now is 5:00 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC