| View previous topic :: View next topic |
| Author |
Message |
RKE
Joined: 03 Apr 2009
Posts: 3
|
| Posted: Fri Apr 03, 2009 12:43 pm Popup Troubles |
|
|
Hello,
I visited this site:
http://www.htmlcodetutorial.com/linking/linking_famsupp_72.html
and used the code for opening an image in a popup window. It worked last week. Now it won't.
What am I missing? I did it all just like the page said - even the part where I wouldn't go insane. The image opens in the same window like with a normal link. "please" "help" |
|
|
sticks464
Joined: 31 Dec 2006
Posts: 2630
|
| Posted: Fri Apr 03, 2009 1:13 pm |
|
|
| Need to see the code you used for the pop-up and the script used to troubleshoot. |
|
|
RKE
Joined: 03 Apr 2009
Posts: 3
|
| Posted: Mon Apr 06, 2009 9:55 am The Code |
|
|
Here it is, from the script to the first occurrence of the popup. I'll have multiple thumbnails and I want each larger image to popup with little or no extra space on the page. Like I said, it worked last week. I changed the design and I may have left something out, or added something, that's messing it up. Thanks.
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
return false;
}
//-->
</SCRIPT>
</head>
<body topmargin=15 leftmargin=250 marginheight=15 marginwidth=250>
<table style="width: 750px; float: none;" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 100px" colspan="2"><a href="index.htm">
<img src="images/logo1.gif" width="150"
height="83" class="style6" /></a></td>
<td style="width: 750px" class="style4" colspan="3"></td>
<td style="width: 750px" class="style5" valign="bottom" colspan="2"><strong>
Telephone 256-845-7945<br />
Toll-free 1-800-758-7490</strong></td>
</tr>
</table>
<table>
<tr>
<td class="style3" colspan="5">
<map name="FPMap0" id="FPMap0">
<area href="index.htm" shape="rect"
coords="37, 20, 121, 38" />
<area href="aboutus.htm" shape="rect"
coords="175, 19, 276, 37" />
<area href="contact.htm" shape="rect"
coords="322, 20, 425, 37" />
<area href="prodserv.htm" shape="rect"
coords="459, 20, 572, 36" />
</map>
<img src="images/tabgal.gif" width="750" height="45"
usemap="#FPMap0" class="style7" /></td>
</tr>
<tr>
<td class="style3" colspan="5">
</td>
</tr>
<tr>
<td class="style3" valign="top">
<a href="images/lg_dish1.jpg" onclick="return popup('images/lg_dish1.jpg','dish_1')">
<img src="images/sm_dish1.jpg" width="200"
height="150" class="style7" /></a></td> |
|
|
RKE
Joined: 03 Apr 2009
Posts: 3
|
| Posted: Mon Apr 06, 2009 11:48 am Unbelievable |
|
|
| It's working now. I didn't change anything. Maybe I just needed to restart. |
|
|
| |
|
|
|