Incorect Markup?

This is a discussion on "Incorect Markup?" within the JavaScript Forum section. This forum, and the thread "Incorect Markup? are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 13th, 2008, 15:44
Junior Member
Join Date: Apr 2008
Location: SHROPSHIRE
Age: 22
Posts: 14
Thanks: 1
Thanked 1 Time in 1 Post
Exclamation Incorect Markup?

Hi. Ime trying to create a template in dreamweaver with a flash menu in it.
However something in the code that goes in the body is screwing it up and when i save the template the menu disapears.

the code is as follows.

Code: Select all
<body>
<Body onload="AdjustMenu('color','true',0,0)" onresize="AdjustMenu('color','true',0,0)">

<div id="color_id" >123 Flash Menu Placeholder.</div>
<script type="text/javascript">
var fo = new FlashObject("menu.swf","color","664","148","6","#FFFFFF");
    fo.addParam("menu","false");
    fo.addParam("quality","best");
    fo.addParam("scale","noscale");
    fo.addParam("salign","LT");
    fo.addParam("wmode", "transparent");
 if (navigator.appName.indexOf("Microsoft")== -1) {
     fo.addVariable("notIE","1");}
    fo.write("color_id");
document.getElementById('color').style.width="664px";
document.getElementById('color').style.position="absolute";
document.getElementById('color').style.zIndex="10"
</script>
It seems to be a problem with the line in red but i cant work out what (ime new to codeing)

So any help apreciated, thanks!!

Andy.

Last edited by CloudedVision; Jun 14th, 2008 at 03:37.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jun 13th, 2008, 19:09
Reputable Member
Join Date: Mar 2008
Location: Chester, UK
Age: 18
Posts: 443
Thanks: 2
Thanked 30 Times in 30 Posts
Re: Incorect Markup?

Try removing the first <body> tag, you shouldn't have two

And

Quote:
"664p x";
Quote:
"a bsolute";
Remove those spaces, wether they've just occured on the forum idk, but make sure they're not there... so it'd be

Quote:
"664px";
Quote:
"absolute";
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jun 14th, 2008, 15:54
Junior Member
Join Date: Apr 2008
Location: SHROPSHIRE
Age: 22
Posts: 14
Thanks: 1
Thanked 1 Time in 1 Post
Re: Incorect Markup?

Removing the body tag half worked, it now isnt coming up with the markup error but its still making the menu vanish :-s
The absolute and 664px things did not have a space in, must of changed it when i pasted it in.
Any other ideas?

cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jun 14th, 2008, 15:59
Junior Member
Join Date: Apr 2008
Location: SHROPSHIRE
Age: 22
Posts: 14
Thanks: 1
Thanked 1 Time in 1 Post
Re: Incorect Markup?

P.S. For anyone who wants to check out full source code the site is:

www.aplus-electrical-testing-services.co.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jun 14th, 2008, 20:13
CloudedVision's Avatar
Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 1,275
Blog Entries: 9
Thanks: 2
Thanked 40 Times in 40 Posts
Re: Incorect Markup?

Seems to be working fine for me. (In firefox 3 beta on Ubuntu, that is)
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jun 15th, 2008, 12:09
Reputable Member
Join Date: Mar 2008
Location: Chester, UK
Age: 18
Posts: 443
Thanks: 2
Thanked 30 Times in 30 Posts
Re: Incorect Markup?

It displays fine XP SP3 , just isn't central?

Tested in IE7, FF2, Netscape 4 and opera 9

The only problem there is (other than it not being central) is a big blank white space because you set the height of the flash object to 148px and the width to 664px when it should be around 28px heigh and 500px wide.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jun 16th, 2008, 16:40
Junior Member
Join Date: Apr 2008
Location: SHROPSHIRE
Age: 22
Posts: 14
Thanks: 1
Thanked 1 Time in 1 Post
Re: Incorect Markup?

Can I ask which browser has the big blanc space? I hadnt come across that 1!
I know it displays ok and works just cant get the dam thing central!!

Argh!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
dreamweaver, flash, javascript, menu, template

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Markup Validation: end tag for element X which is not open HTML newbie Starting Out 3 May 25th, 2008 10:08
Semantically Correct Markup or Not? JacobHaug Web Page Design 3 Oct 11th, 2007 13:48
X/HTML 5 Versus XHTML 2: Competition To Become The Next Markup Language Vlad Alexander Webforumz Cafe 5 Feb 5th, 2007 21:48


All times are GMT. The time now is 04:53.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved