navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

CSS picture popup with another picture overlay.

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> CSS picture popup with another picture overlay.
Page: [1]
 
mtfm

 

Posts: 426
Joined: 1/13/2006
From: Mesa, AZ
Status: offline

 
CSS picture popup with another picture overlay. - 6/7/2006 13:32:23   
OK, so I was looking at the dynamic drive CSS picture popups, and have come up with a cool adaptation I think might be useful. I figured out how to not only have the picture pop up, but to add another picture overlay wherever I want.

I do a procedure manual trying to explain an old, unix, text-based application...and there are 20+ text fields on some screens.....so it is very useful to be able to have a pointer to show exactly where your cursor should be at each step. I can do this and have unlimited variations, all using only 2 images! :)

Note: I only have access to IE version 6, so I have no idea whether it will work in other browsers or not.

I don't unfortunately have a public site I can show it in action, but here is the code. I hope someone finds this as useful as I do.

I am happy to be able to contribute as this forum has been most helpful to me.

Andrew

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>CSS Picture Popup Test</title>
<!-- Source: Dynamic Drive CSS Library -->
<!-- URL: http://www.dynamicdrive.com/style/ -->

<style type="text/css">

.thumbnail{
position: relative;
z-index: 0;
}

.thumbnail:hover{
background-color: transparent;
z-index: 50;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}

.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: -15px;
left: 60px; /*position where enlarged image should offset horizontally */

}


img.x
{
position:absolute;
left:50px;
top:50px;
z-index:99
}

img.y
{
position:absolute;
left:50px;
top:200px;
z-index:99
}

</style>

</head>

<body>
<h1>ACPF screen</h1>

<p><a class="thumbnail" href="#thumb">Enter your name<span><img src="acpf.PNG" /><br />This is the ACPF Screen.  Enter your name by the arrow. <img class="x" src="rightarrow.gif" width="54" height="30" /></span></a> into 
the appropriate spot.</p>

<p><a class="thumbnail" href="#thumb">Enter your email address <span><img src="acpf.PNG" /><br />This is the ACPF Screen.  Enter your complete email address by the arrow. <img class="y" src="rightarrow.gif" width="54" height="30" /></span> </a>


</p>


<p> <a class="thumbnail" href="#thumb">Enter both your name and address.<span><img src="acpf.PNG" /><br />This is the ACPF Screen.  Enter your name and email address in the appropriate spots. <img class="x" src="rightarrow.gif" width="54" height="30" /> <img class="y" src="rightarrow.gif" width="54" height="30" /></span></a> into the appropriate spots. 


</body>


</html>


jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: CSS picture popup with another picture overlay. - 6/10/2006 18:43:35   
Thanks for that, I'm sure someone will find it useful. In Firefox it goes a bit odd on the third one where one of the pictures sits over the text pop-up.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to mtfm)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> CSS picture popup with another picture overlay.
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts