Forum Moderators: open
Any one know a way around this?
Thanks,
Chris Middleton
try opening up a div instead. you can use a combination of CSS and javascript to make a hidden div appear when a link is clicked. you can even give the div borders and scrollbars to make it look like a window, if you like. and you can be sure that all users will see the same thing.
I have a script and CSS to do exactly what penders describe with <div>. This will pop-up the <div> where you place it in the page:
<script type="text/javascript">
<!--
function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}
//-->
</script>
<style type="text/css">
div.largeImage {
border:5px solid #000090;
display:none;
position:absolute;
background-color: #000000;
padding: 10px;
font-family: Arial,sans-serif;
font-size: 12px;
font-weight: bold;
color: #FFFFFF;
text-align: center;
}
</style>
The <div>
<div id="uniqueID" class="largeImage"><img src="small_image.gif"></div>
The Link:
<img src="small_image.gif" onmouseover="ShowContent('uniqueID'); return true;" onmouseout="HideContent('uniqueID'); return true;" />
All that matters is that the ID's in the <div> match the onmouse event ID.
Marshall
[edited by: Marshall at 10:23 pm (utc) on July 12, 2007]