![]() |
|
|
#1
|
||||
|
||||
|
Making a pop up(with close window button)
How do you make a pop up window to display a product better, but still have text with a button to close the window?
|
|
#2
|
||||
|
||||
|
probably best done with javascript. i dont know exactly how its done though
|
|
#3
|
|||
|
|||
|
if you are just looking to put a link in the window that will close when clicked, this is what i do
Quote:
__________________
Thanks, Dave |
|
#4
|
||||
|
||||
|
Is there a place to learn more? Try doing a search on pop ups
![]() I don't know enough about the pop up to search more on the subject. I'm not into the pop up spam, just when someone want's to learn more about a product they can. |
|
#5
|
|||
|
|||
|
Everybody hates popups. If I go to a site with popups that make it through FireFox's popup blocker, I leave as quickly as I came.
|
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
||||
|
||||
|
That is probably the best idea for most sites, which is what I normally do anyway. However in my case I did not want them to navigate to another page. But at the same time I didn't want to limit myself by not giving more detail. In my case I'd fear that navigating an extra page may take the focus away on complimentary goods.
|
|
#9
|
||||
|
||||
|
why not have a frame where the image is displayed instead?
|
|
#10
|
||||
|
||||
|
I think I'm going to redesign my navbar.
I may have outgrown it anyway. I'll use regular text as a main subject. With smaller text under it slightly tabbed over. Better organization may be the key rather than click on the link to read more about. |
|
#11
|
||||
|
||||
|
this is the code i use for image popups for zoomable product pictures.
enter this somewhere in the <head>: Code:
<SCRIPT language=Javascript>
function openWin(page,name,width,height)
{
winOpts = 'toolbar=0,width=' + width + ',height='+ height +',directories=0,status=1,scrollbars=0,resize=0,menubar=0,location=0,copyhistory=0'
if (navigator.userAgent.indexOf("Mac") >= 0)
{
var W = open(page,name,winOpts)
open(page,name,winOpts)
} else {
var W = open(page,name,winOpts)
}
W.creator = self;
}
</SCRIPT>
this is the link used to load the window. i would recommend using a simple php file to call the image so u can format the margins within this new window (i.e. zoom.php?img=blah.jpg). but in any case you can still just link to the image. heres the syntax: Code:
<a href="javascript:openWin('image or website link','name of popup',width,height);">Link Here</a>
Code:
<a href="javascript:openWin('zoom.php?img=1234.jpg','pop3',320,240);">Click Here to Zoom</a>
-Dan
__________________
Arestia Design Studios / Synapse Corporate Solutions Daniel L. Rust - Lead Architect Seattle, WA |
![]() |
| Bookmarks |
| Thread Tools | |
|
|