Log In · Register

 
Resizing Popup window to fit an image, PLZ HELP!!!
Dreamy_illusions
post Mar 11 2005, 04:42 PM
Post #1


Senior Member
***

Group: Member
Posts: 57
Joined: Feb 2004
Member No: 4,752



I have been trying to find a script to resize a popup window to fit an image. I have an iFrame layout so I need the code to allow people to access my links inside the popup window.

I have found a few website wit tutorials but they are VERY confusing!! cry.gif wacko.gif And I can never figure it out.

If any of u know the script i would appricaite your help. Or if you know a link to a non-confusing tutorial site on this I would love it. THANK
 
 
Start new topic
Replies
shawty_redd
post Mar 14 2005, 09:37 AM
Post #2


Alisha
******

Group: Member
Posts: 2,341
Joined: Mar 2004
Member No: 9,880



k got another code

should work this time


CODE
<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>

<A
  HREF="URL OF SITE"
  onClick="return popup(this, 'notes')">IMG OR TEXT</A>
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: