I'm trying to get the following code to work with non IE browsers and am failing miserably. It creates three buttons and once you move your mouse over a button a text description is supposed to appear nearby. It works fine in IE but not in others. Have changed visibility to display and this still doesn't work. Please help
<html>
<head>
<script language="javascript">
var descriptions = new Array();
descriptions[0] = "<p>See whats been added to the web site recently</p>";
descriptions[1] = "<p>Find out more about me</p>";
descriptions[2] = "<p>Check out my links</p>";
function showDescription(descriptionIndex)
{
if (document.all)
{
DescriptionDiv.style.visibility = "visible";
DescriptionDiv.innerHTML = descriptions[descriptionIndex];
}
else
{
document.DescriptionDiv.display = "none";
document.DescriptionDiv.document.open();
document.DescriptionDiv.document.write("<div class='DescriptionDivStyle'>");
document.DescriptionDiv.document.write(description s[descriptionIndex]);
document.DescriptionDiv.document.write("</div>");
document.DescriptionDiv.document.close();
}
}
function clearDescription()
{
if (document.all)
{
DescriptionDiv.style.visibility = "hidden";
}
else
{
document.DescriptionDiv.display = "block";
}
}
</script>
<style>
div {border-width:thin;border-style:ridge;border-color:red;width:250px;height:70px;visibilty:hidden ;}
.DescriptionDiv {position:absolute;left:120px;top:50px;}
</style>
</head>
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
Hi, I've view sourced the page and copied the html, js files and css files (all except the htc file). The page won't display properly - no big number pics or small number pics on my computer - is there something I'm missing?
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
Ah Right
Sry to keep asking but i am still having a prob
I've got the code and rejigged it into a basic table but am having probs putting images in. My browser fails to recognise the image and just displays the missing image icon.
function toggle(id,sender)
{
hideAll();
var e = document.getElementById(id).style;
var disp = 'block';
var vis = 'visible';
e.display = disp;
e.visibility = vis;
}
and does button1.jpg exist in the location? (the same folder as the HTML file)
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?