Trevzilla
06-06-2008, 06:19 PM
1) Script Title: Popup information box II
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/popinfo2.htm
3) Describe problem: I am trying to implement this code into my website, with a few little modifications. First of all, the example code works fine on the dynamic drive website, but it does not work on my site. Secondly, what I have does work fine in Internet Explorer and Safari, but it does not work in Firefox. Just curious if I could get some help. . .
Firstly, I'll describe what I am trying to do. I am trying to have the popup information box pop up with dynamically created information in it. More or less, a person uploads a picture to my website, and I they input their name into a form. The name is then written to a mysql table. The Popup box then reads the name, and displays the message: "This picture was uploaded by: userX"
Now, what happens is this. Once again, it works perfectly in IE, but in Firefox the popup box appears only in the upper left corner, instead of following the mouse around. If you would like to see what I am talking about, here is the website address:
http://www.photomosaicproject.com/photographs.php
Here is the code that I believe is the problem:
echo '<a href="'.$row[0].'" target="_blank" ONMOUSEOVER="popup(\'This picture was uploaded by: '.$name[0].' '.$name[1].'\',\'lightyellow\');" ONMOUSEOUT="kill()"><img src="/uploads/'.$images[$i+1] .'" border=0 width=200 height=200></a>';
Other than that code, I've copied everything else verbatim from the example page.
Any ideas? Thanks!
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/popinfo2.htm
3) Describe problem: I am trying to implement this code into my website, with a few little modifications. First of all, the example code works fine on the dynamic drive website, but it does not work on my site. Secondly, what I have does work fine in Internet Explorer and Safari, but it does not work in Firefox. Just curious if I could get some help. . .
Firstly, I'll describe what I am trying to do. I am trying to have the popup information box pop up with dynamically created information in it. More or less, a person uploads a picture to my website, and I they input their name into a form. The name is then written to a mysql table. The Popup box then reads the name, and displays the message: "This picture was uploaded by: userX"
Now, what happens is this. Once again, it works perfectly in IE, but in Firefox the popup box appears only in the upper left corner, instead of following the mouse around. If you would like to see what I am talking about, here is the website address:
http://www.photomosaicproject.com/photographs.php
Here is the code that I believe is the problem:
echo '<a href="'.$row[0].'" target="_blank" ONMOUSEOVER="popup(\'This picture was uploaded by: '.$name[0].' '.$name[1].'\',\'lightyellow\');" ONMOUSEOUT="kill()"><img src="/uploads/'.$images[$i+1] .'" border=0 width=200 height=200></a>';
Other than that code, I've copied everything else verbatim from the example page.
Any ideas? Thanks!