Jump to content

Recommended Posts

I have the windows 7 beta and im using the ie there, im guessing its ie 8. Why wont ie read this script? On mozilla the popup box appears and i can read the text inside, but for ie i only see the box and no words.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

 

<meta http-equiv="X-UA-Compatible" content="IE=8;FF=3;OtherUA=4"  />

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"

"http://www.w3.org/TR/html4/frameset.dtd">

<head>

<title>test</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<style type="text/css" media="screen">

<!--

.linkpopup {

position: relative;

}

 

.linkpopup span {

background-color: #ccc;

border: 1px solid #000;

display: block;

left: 0;

padding: .25em;

position: absolute;

top: -1.75em;

}

 

.linkpopup:link span,

.linkpopup:visited span {

visibility: hidden;

}

 

.linkpopup:hover span,

.linkpopup:focus span,

.linkpopup:active span {

color: #000;

text-decoration: none;

visibility: visible;

}

-->

</style>

 

</head>

<body>

<br /><br /><br /><br /><br /><br /><br /><br /><br />

<a href="blah.html" class="linkpopup">Link text <span>Description text</span></a>

</body>

</html>

Link to comment
https://forums.phpfreaks.com/topic/151550-why-doesnt-this-work-for-ie/
Share on other sites

Your page is all out of order. That may be causing your problem. It should look like this:

 

Doctype (only one - so you have to get rid of one of yours)

opening html tag

opening head tag

meta tags, title tag, style tags, script tags

closing head tag

opening body tag

page content

closing body tag

closing html tag

 

Anything that isn't in the above order will cause you problems somewhere, and may be what is causing you problems now.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.