[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 08-24-2006, 05:19 PM   #1 (permalink)
NamePros Regular
 
firestorm's Avatar
 
Join Date: Nov 2005
Location: NC
Posts: 202
129.55 NP$ (Donate)

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!

-fire
__________________
Pixel Advertising
firestorm is offline  
Old 08-24-2006, 08:08 PM   #2 (permalink)
NamePros Regular
 
ablaye's Avatar
 
Join Date: May 2006
Location: WebmasterGround.com
Posts: 837
0.00 NP$ (Donate)

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, 08:10 PM   #3 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
 
Join Date: Feb 2006
Posts: 2,801
56.00 NP$ (Donate)

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, 01:50 PM   #4 (permalink)
NamePros Regular
 
firestorm's Avatar
 
Join Date: Nov 2005
Location: NC
Posts: 202
129.55 NP$ (Donate)

firestorm will become famous soon enoughfirestorm will become famous soon enough


Thanks Dan, that worked perfectly! rep added
__________________
Pixel Advertising
firestorm is offline  
Old 08-25-2006, 02:08 PM   #5 (permalink)
Account Closed
 
Join Date: Aug 2006
Posts: 1
0.00 NP$ (Donate)

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

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

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


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 12:54 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85