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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

duplicate attribute in body tag 1

Status
Not open for further replies.

JuUaAn

Programmer
Jul 23, 2003
7
CA
Hi everyone,

I just have a question about javascript in Dreamweaver MX. In my body tag, I have:

<body bgcolor=&quot;#FFFFFF&quot; onLoad=&quot;javascript:checkCount()&quot;;MM_preloadImages('../images/main_menu_r1_c1_f3.gif','../images/main_menu_r1_c1_f2.gif','../images/main_menu_r3_c1_f3.gif','../images/main_menu_r3_c1_f2.gif','../images/main_menu_r5_c1_f3.gif','../images/main_menu_r5_c1_f2.gif','../images/main_menu_r7_c1_f3.gif','../images/main_menu_r7_c1_f2.gif','../images/main_menu_r9_c1_f3.gif','../images/main_menu_r9_c1_f2.gif')&quot;>

Then, Dreamweaver marks this line as invalid because it contains a duplicate attribute. But the funny thing is, the page works the way I wanted it to work. Could someone tell me how to fix this error? Thanks!
 
WARNING: I know nothing about Dreamweaver. However...

try removing the double-quote following checkCount() in the onLoad command. I suppose the software may be wondering why there is a close-quote there and then another one at the end. The page may still work because of how forgiving HTML can be.

Good luck.

--Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top