Log In · Register

 
 
Closed TopicStart new topic
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
 
shawty_redd
post Mar 13 2005, 04:05 PM
Post #2


Alisha
******

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






where it says 300, 400 thats th width and length
 
Dreamy_illusions
post Mar 13 2005, 06:16 PM
Post #3


Senior Member
***

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



THANKZ a mil for the code...but it doesnt work

when I put it in my code in page and try to click on the link it says page not found. and when I hover over my link on the bottom of my page it says:



y is it doing this and I've tried everything to get it to work but it keeps puting my URL in front of the code is there anyway to fix it?
 
shawty_redd
post Mar 14 2005, 09:37 AM
Post #4


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>
 
*[2]Nekked*
post Mar 22 2005, 10:30 PM
Post #5





Guest






er... you didnt do a very good job of explaining that script.

from <script> to </script> should be put in the beginning of your code.


<a href="...

should be used whenever you want to link an image.
 

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