Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Design Forum > HTML / CSS
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-20-2005, 05:52 PM   #1 (permalink)
clifford
Junior Member
 
Join Date: Jun 2005
Location: Finland
Posts: 26
Default Transparent pop-up

Hey folks,

Have you ever came across those sites where a transparent text or image floats onto the screen and then stops. I assume the floating part is done using JavaScript or another coding method but how do you make the popup transparent so the visitor can still view the text on the page behind it?

I tried using a transparent gif in the popup but it still blocks the text behind it that the popup covers.
clifford is offline   Reply With Quote
Sponsored Links
Old 12-20-2005, 06:36 PM   #2 (permalink)
bigbomba
Member
 
Join Date: Dec 2005
Posts: 50
Default

Yeah I have seen those. A lot of them I haven't been able to exit, and it gets really annoying. I think it drives traffic away, so it's not a good thing to have. You shouldn't try to make one.
bigbomba is offline   Reply With Quote
Old 12-20-2005, 08:51 PM   #3 (permalink)
thejunior
Junior Member
 
Join Date: Jul 2005
Posts: 24
Default

Yeah, I kind of agree with ~bigbomba they annoy me too. Plus most people these days use some type of popup blocker. I use the google toolbar and have pop-up's blocked but once in a while one sneaks in. Particularly the type you wish to create. Anyway it is your design. If you just want a window with some text within it you could use some type css with a transparency background along with javascript.
thejunior is offline   Reply With Quote
Old 12-21-2005, 05:56 PM   #4 (permalink)
clifford
Junior Member
 
Join Date: Jun 2005
Location: Finland
Posts: 26
Default

Thanks for the opinions but I need a solution. It is not for me it is for a client and it is not for a pop-up sales pitch. The customer wants a transparent skin in a blue-ish color to appear over the footer area of one of their pages with instructions for there visitors.

So it will show over an image and It can be just a window with text only. It just needs to be transparent so the image is still visible.

I hope this explains what i am trying to do a little better..
clifford is offline   Reply With Quote
Old 12-21-2005, 08:07 PM   #5 (permalink)
kayla
Member
 
Join Date: Jun 2005
Location: Tampa, Fla
Posts: 37
Default

Hi,

I have this example you may be able to customize to fit your needs. I save all kinds of code in my library. Javascript, php, and other code snippets because you never know when you may need it for a design.

[HTML]<html>
<head>
<title>Your Page Title</title>
<!--You can just add some CSS code to the top of your page below the <head>, to make a CSS class in order to customize the look of the pop-up. -->
<!--The part the code above of interest to you, is the 3rd line: filter:alpha(opacity=80);. This line makes the popup transparent with the opacity value set to 80-->
<!--You can set the opacity within 0 - 100. If you set to 0, you won't see the popup. -->
<style type="text/css">
.transparent {
filter:alpha(opacity=80);
background-color:#B7CEEC;
display:none;
width:170;
height:100;
position:absolute;
color: navy;
border: 1 red solid;
}
</style>

<!--Add some JavaScript right below the CSS above. This code above uses only 2 functions, one to display the pop-up and another to hide the pop-up. -->
<script>
/* this function shows the pop-up when
user moves the mouse over the link */
function Show()
{
/* get the mouse left position */
x = event.clientX + document.body.scrollLeft;
/* get the mouse top position */
y = event.clientY + document.body.scrollTop + 35;
/* display the pop-up */
Popup.style.display="block";
/* set the pop-up's left */
Popup.style.left = x;
/* set the pop-up's top */
Popup.style.top = y;
}
/* this function hides the pop-up when
user moves the mouse out of the link */
function Hide()
{
/* hide the pop-up */
Popup.style.display="none";
}
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<!--The last part is placing the function into the body of the page-->
<a href="" onMouseOut="Hide()" onMouseOver="Show()" onMouseMove="Show()">Move the mouse over here</a><br>
<br>
Move your move over the link above and the pop-up appears. And the pop-up<br>
follows your mouse as long as your mouse is still over the link.
<div id="Popup" class="transparent">
<div style="background-color:#C3FDB8">
<b>Title goes here</b></div>
<div>Description goes here</div>
</div>
</body>
</html>
[/HTML]hth
kayla is offline   Reply With Quote
Old 12-28-2005, 03:04 PM   #6 (permalink)
twisterfries
Member
 
Join Date: Dec 2005
Posts: 40
Default

Thanks for the code men.Is this your work?Im actually curios about this topic glad there is a genius to teach us the how to?!hehe
twisterfries is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 09:06 PM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums