Support Forums

Old 06-17-2009, 06:30 AM   #1
Member
 
Join Date: May 2009
Posts: 66
Rep Power: 0
Exclamation Equivalent to Area Map Link on Template Logo

I have searched the 68C documentation and didn't find anything on this topic. Essentially I want to allow a specific portion of the Template Logo to be used as a link back to index.php. The only thing I have been able to come up with is using a Map over the image: <img src="photos/{$template_logo}" border="0" alt="{$template_title}" usemap="#Map" /><map name="Map" id="Map"><area shape="rect" coords="15,24,319,138" href="index.php" /></map>

The reason why I am asking is that I am getting an error with HTML validation and I don't know why it the WC3 is flagging this line of code. So I thought if there was a way in the admin to control this, then perhaps I can eliminate this error.

This is the WC3's explanation of the error:

************************************************** ****************
�s="15,24,319,138" href="index.php" /></map>
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
************************************************** ****************

Can anyone please advise me on this?
__________________
68C | Developer License | Running v4.1.3
industrialpost is offline   Reply With Quote
Old 06-17-2009, 08:18 AM   #2
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,625
Rep Power: 47
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

It appears that what you are missing is an alt= in your map area. In HTML/XHTML this is a requirement for an image element. Map areas are treated just like images, because that is essentially what they are. So in your map area you should have the syntax like this:
href="index.php" alt="Home" />

A good reference for this type of thing is here: w3schools.com

As you are working through validation errors use the reference section and click on the referenced element. Compare your syntax to the example syntax in the reference and you should easily be able to notice a difference to bring your code into compliance.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified)
Sandbox (v3.1.10, v4.0.9, 4.1.3)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 06-17-2009, 08:19 AM   #3
Staff
 
Join Date: Mar 2006
Posts: 410
Rep Power: 22
Blair will become famous soon enough
Default



Dumb Question
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
Blair is offline   Reply With Quote
Old 06-17-2009, 11:02 AM   #4
Member
 
Join Date: May 2009
Posts: 66
Rep Power: 0
Smile

Hmm interesting. I never knew that you had to have an alt="" tag for an area map. I think it is really redundant and thus I thought it was something else causing the error. Thanks guys!
__________________
68C | Developer License | Running v4.1.3
industrialpost is offline   Reply With Quote
Old 06-17-2009, 11:36 AM   #5
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,625
Rep Power: 47
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

Quote:
Originally Posted by industrialpost View Post
Hmm interesting. I never knew that you had to have an alt="" tag for an area map. I think it is really redundant and thus I thought it was something else causing the error. Thanks guys!
It may seem redundant to you, however to someone who is blind and is using a non-visual browser it certainly isn't.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified)
Sandbox (v3.1.10, v4.0.9, 4.1.3)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote

Bookmarks

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

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
Can not log into customer area redmtnex v4 Questions & Support 2 10-22-2008 11:02 AM
How do i change the logo on 68 auto red template? curiousaboutwebdesign v4 Questions & Support 2 06-18-2008 08:21 PM
Admin Area Jessej v4 Questions & Support 1 09-21-2007 11:41 AM
Area to display # of members and # of ads zman78 HTML, CSS, and Design Help 13 03-30-2006 08:51 AM


All times are GMT -4. The time now is 10:28 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0