HighDots Forums  

NAME attribute

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss NAME attribute in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Karlhevera
 
Posts: n/a

Default NAME attribute - 08-20-2008 , 02:39 AM






When I validate the below code, mainly created by DW, I am told there is NO
such attribute in STRICT . When I remove it, the code does not work, of
course, I guess. What do I have to amend for this to be properly validated,
please?

<img src="galleries/sides/right_1/sloane_thumb.jpg" alt="Click to see show"
name="Image11" usemap="#Image11Map" id="Image1" style="position:absolute;
width:100px; height:100px; z-index:1; background-color: #91C87D; border: 1px
none #000000; left: 855px; top: 35px;" />


Reply With Quote
  #2  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: NAME attribute - 08-20-2008 , 07:24 AM






Use a Transitional doctype.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Karlhevera" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
When I validate the below code, mainly created by DW, I am told there is
NO
such attribute in STRICT . When I remove it, the code does not work, of
course, I guess. What do I have to amend for this to be properly
validated,
please?

img src="galleries/sides/right_1/sloane_thumb.jpg" alt="Click to see
show"
name="Image11" usemap="#Image11Map" id="Image1" style="position:absolute;
width:100px; height:100px; z-index:1; background-color: #91C87D; border:
1px
none #000000; left: 855px; top: 35px;" /



Reply With Quote
  #3  
Old   
Karlhevera
 
Posts: n/a

Default Re: NAME attribute - 08-20-2008 , 06:40 PM



OK. thanks.But is there not an alternative in STRICT or a workaround ?

Reply With Quote
  #4  
Old   
djinn
 
Posts: n/a

Default Re: NAME attribute - 08-20-2008 , 06:49 PM



Karlhevera wrote:
Quote:
OK. thanks.But is there not an alternative in STRICT or a workaround ?
It's not necessarily a clever thing using strict (you get no prizes) -
knowing when to change the doctpe is - and you get, as your prize, the
ability to move on safe in the knowledge that you have done the right thing!


--
chin chin
Sinclair


Reply With Quote
  #5  
Old   
Karlhevera
 
Posts: n/a

Default Re: NAME attribute - 08-21-2008 , 06:30 AM



I had a problem with the NAME attribute. So checked with W3C and they said
that this should be replaced with ID.. Have done so and it now validates OK.
But still have 1 single error: missing 'alt'. Not sure where it should go, so
here is the offending code, and suggestions would be appreciated;

<map id="Image11Map">
<area shape="rect" coords="103,103,191,192" href="#"
onclick="MM_goToURL('parent','gallery_right_1.htm' );return
document.MM_returnValue"
onmouseover="MM_swapImage('Image11','','galleries/sides/Right_1/sloane_thumb_swa
p.jpg',1)" onmouseout="MM_swapImgRestore()"/>

thanks


Reply With Quote
  #6  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: NAME attribute - 08-21-2008 , 06:47 AM



<area alt="whatever"....

You need to take more advantage of DW's REFERENCE panel, which will tell you
the answers to most of your code questions.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Karlhevera" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I had a problem with the NAME attribute. So checked with W3C and they said
that this should be replaced with ID.. Have done so and it now validates
OK.
But still have 1 single error: missing 'alt'. Not sure where it should go,
so
here is the offending code, and suggestions would be appreciated;

map id="Image11Map"
area shape="rect" coords="103,103,191,192" href="#"
onclick="MM_goToURL('parent','gallery_right_1.htm' );return
document.MM_returnValue"
onmouseover="MM_swapImage('Image11','','galleries/sides/Right_1/sloane_thumb_swa
p.jpg',1)" onmouseout="MM_swapImgRestore()"/

thanks



Reply With Quote
  #7  
Old   
Karlhevera
 
Posts: n/a

Default Re: NAME attribute - 08-22-2008 , 05:10 AM



Many thanks. will have a look at the Reference.
K

Reply With Quote
  #8  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: NAME attribute - 08-22-2008 , 07:50 AM



Do it frequently.... 8)

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Karlhevera" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Many thanks. will have a look at the Reference.
K


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.