943,520 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 15395
  • PHP RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Mar 30th, 2008
0

Re: How To Enlarge Image onMouseOver using PHP?

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
Reputation Points: 10
Solved Threads: 6
Junior Poster in Training
sagedavis is offline Offline
86 posts
since Nov 2007
Apr 3rd, 2008
0

Re: How To Enlarge Image onMouseOver using PHP?

Thanks a lot sagedavis for providing me such useful guide lines of correcting my code
Finally i fixed it up up with this code

php Syntax (Toggle Plain Text)
  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
Reputation Points: 13
Solved Threads: 0
Junior Poster
scorpionz is offline Offline
109 posts
since Sep 2006
Apr 7th, 2008
0

Re: How To Enlarge Image onMouseOver using PHP?

You're welcome,
glad I could help.
sage
Reputation Points: 10
Solved Threads: 6
Junior Poster in Training
sagedavis is offline Offline
86 posts
since Nov 2007
17 Days Ago
0

How to write JavaScript function in php function using php value in that JavaScript f

Enlarge Image onMouseOver using PHP value from MySQL is solved. if you like this page http://bangalipona.com as you want i can describe details here. Although you will be able to view the source code of the pages how to write JavaScript function in php function using php value in that JavaScript functions argument.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
eidshow1 is offline Offline
1 posts
since Jan 2012

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: passing multiple values of tick boxes at the same time
Next Thread in PHP Forum Timeline: PHP help with arrays





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC