NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Javascript Popup Help plz

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-24-2006, 06:19 PM THREAD STARTER               #1 (permalink)
NamePros Regular
Join Date: Nov 2005
Location: NC
Posts: 205
firestorm will become famous soon enoughfirestorm will become famous soon enough
 



Javascript Popup Help plz


Hey,
I have an image on one of my sites that I want to link to a popup(not a bigger version of the image, but another site). Searched around and kept getting nowhere on other's examples. I want the height to be 288 and the width to be 150. I know how to do this on text links, just not image links. Here's what I have so far.
Code:
<a href="javascript:popup()">POPUP</a>
I want an a pic instead of a text link. Thanks a million!
????: NamePros.com http://www.namepros.com/programming/231224-javascript-popup-help-plz.html

-fire
firestorm is offline  
Old 08-24-2006, 09:08 PM   #2 (permalink)
NamePros Regular
 
ablaye's Avatar
Join Date: May 2006
Location: WebmasterGround.com
Posts: 863
ablaye is on a distinguished road
 



What do you mean by popup? You want to open a new window when a link is clicked with a smaller size?
This isn't called a popup btw. Popups are automatically launched when a website is loaded and do not need a click to load.

You have to use window.open to have a new window of smaller size. Look here for examples http://www.pageresource.com/jscript/jwinopen.htm
ablaye is offline  
Old 08-24-2006, 09:10 PM   #3 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
With
Code:
<a href="javascript:popup()">POPUP</a>
All you would have to do is replace POPUP with the html for the image. example:
Code:
<a href="javascript:popup()"><img src="url/to/image.jpg"></a>
Dan is offline  
Old 08-25-2006, 02:50 PM THREAD STARTER               #4 (permalink)
NamePros Regular
Join Date: Nov 2005
Location: NC
Posts: 205
firestorm will become famous soon enoughfirestorm will become famous soon enough
 



Thanks Dan, that worked perfectly! rep added
firestorm is offline  
Old 08-25-2006, 03:08 PM   #5 (permalink)
Account Closed
Join Date: Aug 2006
Posts: 1
pleaseletmeback is an unknown quantity at this point
 



If you get an ugly border just add border="0" to the code and it'll disappear.
pleaseletmeback is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 02:05 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger