Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-03-2004, 04:16 AM
wicked's Avatar
WebProWorld New Member
 

Join Date: Aug 2003
Location: UK
Posts: 12
wicked RepRank 0
Default Help! asp popup

I would like turn the syntax below into a popup window of 200x200px instead of target =_blank.

Can anyone help?


<a href='theme.asp?img=" & trim(rs1("themeimg")) & "' target='blank'>
Reply With Quote
  #2 (permalink)  
Old 03-03-2004, 10:53 AM
sijpie's Avatar
WebProWorld Pro
 

Join Date: Sep 2003
Location: Scotland
Posts: 108
sijpie RepRank 0
Default

Yes, you will need some java script:

in your heading tags place:
Code:
<script language = "JavaScript">
<!--
 function openWin(URL)  {
    aWindow=window.open(URL,"pop_paint","toolbar=no,width=200,height=200,status=no,scrollbars=yes,resize=no,menubar=no");
		//delay a bit here because IE4 encounters errors
		//when trying to focus a recently opened window
 		setTimeout('aWindow.focus();',250);
 }
 
//-->
</script>
the first part of the script will open a window of 200x200, the second part will bring the window in focus ( this is because in this case the window being opened would be reused if the user were to pop a second window, so it could be hidden)

To see it in action go to http://www.broekhuizen.me and click on a painting. Then go back to the main window, and click on another painting.
__________________
Jaap

PalmVenue
Broekhuizen Paintings
MacSijp

You've done it all
You've broken every code (Steve Harley)
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0