Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pop up Window 1

Status
Not open for further replies.

Davefeet

Technical User
Jan 24, 2002
212
US
I have a popwindow defined in the begining of my page. All of the pictures in the popup window are fit with the same dimensions except for one. Is there a way to overide the initial window pop up definition for this odd ball. Salt Lake City Home of 2002 Winter Olympics
 

This is the definition
<!--<SCRIPT>
function openwindow(open){
window.open(open,&quot;Popup&quot;,&quot;toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width=350, height=250, top=0, left=0&quot;)
}
</SCRIPT>
-->

And then this is the image referenced popup window that I want to have a height of 400 not 250.

<a href=&quot;javascript:eek:penwindow('Potential Autofill.jpg')&quot;>lower right hand corner.</a> Salt Lake City Home of 2002 Winter Olympics
 
Is it even Possible? Salt Lake City Home of 2002 Winter Olympics
 
make another openWindow function and call it openWindow1?
 
you could do what riffy said, or an if statement:
Code:
<script language=&quot;Javascript&quot;><!--
function openwindow(open){
if (open == &quot;Potential Autofill.jpg&quot;)
window.open(open,&quot;Popup&quot;,&quot;toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width=350, height=400, top=0, left=0&quot;)
else
window.open(open,&quot;Popup&quot;,&quot;toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width=350, height=250, top=0, left=0&quot;)
}
//--></script>
hope that helps The pen is mightier than the sword.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top