Digital Point Forums
Money Order

Go Back   Digital Point Forums > Design & Development > Programming > JavaScript
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old Aug 31st 2004, 9:16 am
ginostylz's Avatar
ginostylz ginostylz is offline
Champion of the Naaru
 
Join Date: Apr 2004
Posts: 231
ginostylz is an unknown quantity at this point
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?
Reply With Quote
  #2  
Old Aug 31st 2004, 10:19 am
Python's Avatar
Python Python is offline
Twilight Vanquisher
 
Join Date: Aug 2004
Posts: 543
Python is on a distinguished road
probably best done with javascript. i dont know exactly how its done though
Reply With Quote
  #3  
Old Aug 31st 2004, 10:26 am
kaptain kaptain is offline
Champion of the Naaru
 
Join Date: Aug 2004
Location: New Orleans
Posts: 194
kaptain is on a distinguished road
if you are just looking to put a link in the window that will close when clicked, this is what i do

Quote:
<a title="Close Window" href="Javascript:close();">Close Window</a>
__________________
Thanks,
Dave
Reply With Quote
  #4  
Old Sep 1st 2004, 12:14 am
ginostylz's Avatar
ginostylz ginostylz is offline
Champion of the Naaru
 
Join Date: Apr 2004
Posts: 231
ginostylz is an unknown quantity at this point
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.
Reply With Quote
  #5  
Old Sep 1st 2004, 10:42 am
PtrMK PtrMK is offline
Peon
 
Join Date: Sep 2004
Posts: 2
PtrMK is on a distinguished road
Thumbs down I've got a better idea.

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.
Reply With Quote
  #6  
Old Sep 1st 2004, 10:47 am
ginostylz's Avatar
ginostylz ginostylz is offline
Champion of the Naaru
 
Join Date: Apr 2004
Posts: 231
ginostylz is an unknown quantity at this point
Quote:
Originally Posted by PtrMK
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.
So your saying if you were trying to buy something online, like a cell phone or a book and wanted to see a larger image than the one on the page, you would leave if they had a view image link that opened a new window with an enlarged image and a short description of that peticular item? Or would it be wise to decide that a thumbnail and a title is enough for the sale of your good?
Reply With Quote
  #7  
Old Sep 1st 2004, 11:55 am
PtrMK PtrMK is offline
Peon
 
Join Date: Sep 2004
Posts: 2
PtrMK is on a distinguished road
Quote:
Originally Posted by ginostylz
So your saying if you were trying to buy something online, like a cell phone or a book and wanted to see a larger image than the one on the page, you would leave if they had a view image link that opened a new window with an enlarged image and a short description of that peticular item? Or would it be wise to decide that a thumbnail and a title is enough for the sale of your good?
Pop-ups lead to confusing navigation. How about a "detailed info" page for the product, with more specifics and bigger images.
Reply With Quote
  #8  
Old Sep 1st 2004, 12:07 pm
ginostylz's Avatar
ginostylz ginostylz is offline
Champion of the Naaru
 
Join Date: Apr 2004
Posts: 231
ginostylz is an unknown quantity at this point
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.
Reply With Quote
  #9  
Old Sep 8th 2004, 12:51 pm
david_sakh's Avatar
david_sakh david_sakh is offline
of the Nightfall
 
Join Date: Sep 2004
Posts: 1,225
david_sakh is an unknown quantity at this point
why not have a frame where the image is displayed instead?
Reply With Quote
  #10  
Old Sep 8th 2004, 6:41 pm
ginostylz's Avatar
ginostylz ginostylz is offline
Champion of the Naaru
 
Join Date: Apr 2004
Posts: 231
ginostylz is an unknown quantity at this point
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.
Reply With Quote
  #11  
Old Sep 8th 2004, 7:06 pm
arestia's Avatar
arestia arestia is offline
Grunt
 
Join Date: Mar 2004
Location: Seattle, WA, USA
Posts: 89
arestia is on a distinguished road
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>
and the example link:
Code:
<a href="javascript:openWin('zoom.php?img=1234.jpg','pop3',320,240);">Click Here to Zoom</a>
any problems just ask

-Dan
__________________
Arestia Design Studios / Synapse Corporate Solutions
Daniel L. Rust - Lead Architect
Seattle, WA
Reply With Quote
Reply

Bookmarks

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



All times are GMT -8. The time now is 7:10 am.