hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : Advice needed for this situation!!!
Reply

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
Forum Jump

Advice needed for this situation!!!

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-22-2005, 08:51 AM
coppilot coppilot is offline
Junior Guru Wannabe
 
Join Date: Feb 2004
Location: North Carolina
Posts: 43

Advice needed for this situation!!!


On my website www.taylorssports.com I have lots of products that I sell. What I want to do is create some type of pop-up window that would show the ingredients of the product without having to create a whole new web page, because I have a lot of products there now and more coming. Is there anyway to do this? It would be just a small window with information.

Also, if anyone wants to give me any suggestions or pointers about the site please feel free to do so. I know that the site is sort of bland, but I don’t have a lot of experience other than HTML.


Last edited by coppilot; 07-22-2005 at 08:59 AM.
Reply With Quote


Sponsored Links
  #2  
Old 07-22-2005, 09:08 AM
the_pm the_pm is offline
Community Liaison 2.0
 
Join Date: May 2004
Location: Akron/Canton, Ohio (USA)
Posts: 11,112
Maybe this will get you started in the right direction

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Untitled</title>
	<script type="text/javascript">
	function toggle(pop) {
		if (document.getElementById(pop).style.visibility == "visible") {
			document.getElementById(pop).style.visibility = "hidden"
		}
		else {
		document.getElementById(pop).style.visibility = "visible"
		}
	}
	</script>
	<style type="text/css">
	#ad1, #ad2, #ad3 { background:#FAA ; border:2px solid #000 ; color:#000 ; font-family:sans-serif ; padding:100px 5px ; position:absolute ; top:20px ; left:20px ; width:300px ; visibility:hidden ; z-index:1 }
	</style>
	
</head>

<body>

<div id="ad1"><p align="center"><strong>#1</strong> Hello. I am a popup.<br>I want to be your friend.<br><br><a href="#" onclick="toggle('ad1')">Close Me</a></p></div>
<div id="ad2"><p align="center"><strong>#2</strong> Hello. I am a popup.<br>I want to be famous.<br><br><a href="#" onclick="toggle('ad2')">Close Me</a></p></div>
<div id="ad3"><p align="center"><strong>#3</strong> Hello. I am a popup.<br>I want to be left alone.<br><br><a href="#"  onclick="toggle('ad3')">Close Me</a></p></div>

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean porta ultrices magna. Vivamus ut risus a turpis pretium viverra. <a href="#" onclick="toggle('ad1')">More info</a></p>

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean porta ultrices magna. Vivamus ut risus a turpis pretium viverra.  <a href="#" onclick="toggle('ad2')">More info</a></p>

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean porta ultrices magna. Vivamus ut risus a turpis pretium viverra.  <a href="#" onclick="toggle('ad3')">More info</a></p>

</body>
</html>
Save that code as an .html document, and you'll see how it works. HTH!

__________________
Studio1337___̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.__Web Design

Reply With Quote
  #3  
Old 07-22-2005, 09:25 AM
coppilot coppilot is offline
Junior Guru Wannabe
 
Join Date: Feb 2004
Location: North Carolina
Posts: 43
That's pretty cool. Thanks!

Reply With Quote
Sponsored Links
  #4  
Old 07-22-2005, 09:43 AM
the_pm the_pm is offline
Community Liaison 2.0
 
Join Date: May 2004
Location: Akron/Canton, Ohio (USA)
Posts: 11,112
You're welcome

Slightly OT, this same type of script is the foundation for very efficient DHTML menu coding too. Feel free to find interesting ways to convert it

__________________
Studio1337___̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.__Web Design

Reply With Quote
  #5  
Old 07-22-2005, 01:43 PM
coppilot coppilot is offline
Junior Guru Wannabe
 
Join Date: Feb 2004
Location: North Carolina
Posts: 43
the_pm, can you check this out? go to my site www.taylorssports.com and click on my More Info link under the golf gloves. Is there any reason why it scrolls the page back up to the top rather than staying where it is? Thanks

Reply With Quote
  #6  
Old 07-22-2005, 01:46 PM
TheBullet TheBullet is offline
Junior Guru Wannabe
 
Join Date: May 2005
Posts: 50
Its because you have this:

top:20px ; left:20px ;

It is going to place the window 20px from the top and 20px from the left

Reply With Quote
  #7  
Old 07-22-2005, 01:50 PM
coppilot coppilot is offline
Junior Guru Wannabe
 
Join Date: Feb 2004
Location: North Carolina
Posts: 43
thank you!!

Reply With Quote
  #8  
Old 07-22-2005, 01:52 PM
TheBullet TheBullet is offline
Junior Guru Wannabe
 
Join Date: May 2005
Posts: 50
No problem. I am trying to find a script that I know I have in my resources here. It will just pop out on the location of the pointer. I am pulling a blank at the moment, but will let you know if I find it. Last time I did something like this was so long ago...

Reply With Quote
  #9  
Old 07-22-2005, 01:53 PM
coppilot coppilot is offline
Junior Guru Wannabe
 
Join Date: Feb 2004
Location: North Carolina
Posts: 43
is there anyway to make it popup with scrolling the page?

Reply With Quote
  #10  
Old 07-22-2005, 02:47 PM
the_pm the_pm is offline
Community Liaison 2.0
 
Join Date: May 2004
Location: Akron/Canton, Ohio (USA)
Posts: 11,112
You can pop it up using relative positioning, making it relative to the link being clicked. I've not tried this myself, but I don't see how it would be too difficult to do.

__________________
Studio1337___̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.__Web Design

Reply With Quote
  #11  
Old 07-22-2005, 07:38 PM
DefiantPc DefiantPc is offline
Web Hosting Guru
 
Join Date: Mar 2002
Posts: 272
Here are a couple of alternatives as well...


Click for the following examples and code...


traditional Centered pop:

this will open a sized centered window, you will be required to make a target page for each link:


Centered pop with iframe:

this will open a sized centered window with a inline frame, you will be required to make a target page for each link.

Useful for large documents
that may not fit in target.



Change image pop:

Allows you to load a differnet image into the the same target window.

Great for product close ups or
galleries.

__________________
Why, I’m afraid I can’t explain myself, sir, because I’m not myself, you know... - Lewis Carroll

Reply With Quote
  #12  
Old 07-23-2005, 06:45 AM
coppilot coppilot is offline
Junior Guru Wannabe
 
Join Date: Feb 2004
Location: North Carolina
Posts: 43
Thanks to everyone.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Liquid Web Block Storage Offering Provides Flexible, Affordable Storage Option Web Hosting News 2012-11-20 15:03:47
Web Host GeekStorage Opens New Office in Oklahoma, Names Account Manager Web Hosting News 2012-07-31 14:04:33
Data Center Catharsis: Developers vs. Admins Blog 2012-05-10 11:47:40
Brazillian Government is Reportedly Hitting Service Providers with Domain Takedown Notices Web Hosting News 2012-02-09 10:55:05
Web Host VISI Provides Hosting Services to Minnesota Public Radio Web Hosting News 2011-12-30 15:45:36


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?