|
|
#1 |
|
Member
Join Date: May 2009
Posts: 66
Rep Power: 0 |
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 |
|
|
|
|
|
#2 |
|
68 Evangelist & Developer
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,625
Rep Power: 47 ![]() ![]() |
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 |
|
|
|
|
|
#3 |
|
Staff
Join Date: Mar 2006
Posts: 410
Rep Power: 22 ![]() |
|
|
|
|
|
|
#4 |
|
Member
Join Date: May 2009
Posts: 66
Rep Power: 0 |
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 |
|
|
|
|
|
#5 | |
|
68 Evangelist & Developer
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,625
Rep Power: 47 ![]() ![]() |
Quote:
__________________
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 |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |