Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript won't work inside html Dreamweaver tags

Status
Not open for further replies.

ccarter1971

Programmer
Joined
Dec 5, 2006
Messages
3
Location
US
In a nutshell, here is the problem: My CSS is lost on all my text when my javascript is within Dreamweavers HTML tag. I have a hidden thumbnail of an image that appears upon rollover of text within my document. The thumb is supposed to appear in the immediate general area below the text. Within my include file (without html, title, head and body tags), it wrks great! However the minute I open the include within the page (with the tags), the position is random and no where near where it is supposed to be. I have stripped the page of all code piece-by-piece (took a while), and the reason it is having these problems is this code here:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

Here are two pages:

The first contains that code, the second contains this:

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

The problem is that for whatever reason, with the second code, I lose my css on the links and it alters the page. How can I fix this problem? Please advise asap, as I have wasted WAY to much time trying to figure this out!

Thanks so much, Everyone! I truly appreciate it!

Sincerely-
Charles Carter
 
Hi

Charles said:
Dreamweavers HTML tag.
Hmm... Dreamweaver had defined HTML tags ? I thought all are defined by W3C...

The posted code is not enough, the URLs are invalid. Please post more, otherwise we can not help.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top