Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #31  
Old 04-15-2005, 09:47 AM
Joris Offline
forum loafer
 
Join Date: Apr 2005
Posts: 13
Quote:
Sorry to be tiresome wit hxhtml compliant, but i validate the web site with it and i get the same error

Line 61, column 354: there is no attribute "name"

...rc='img/star_on.gif' alt='3.00' name='star1' width='12' height='12' style='bo ..

how can i change attribute name??
thx.
change:
Code:
$ratings_html = "<script type=\"text/javascript\" language=\"JavaScript\">image1 = new Image();image1.src = \"img/star_over.png\";function replace(img_name,img_src){document[img_name].src=img_src;}</script>";
to:
Code:
$ratings_html = "<script type=\"text/javascript\" language=\"JavaScript\">image1 = new Image();image1.src = \"img/star_over.png\";function replace(img_name,img_src){document.getElementById(img_name).src=img_src;}</script>";
and replace the 'name=' by 'id='
Reply With Quote
  #32  
Old 04-15-2005, 02:05 PM
reflejandome Offline
pixelpost guru
 
Join Date: Mar 2005
Posts: 124
Send a message via MSN to reflejandome Send a message via Yahoo to reflejandome
thank you !! i have made a minor change

<script type=\"text/javascript\" language=\"JavaScript\">
to
<script type=\"text/javascript\" >

and

border ='0'
to
style='border:0px'

so my site is XHTML Strict compliant !!

thank you for the changes !!
__________________
reflectingmyself photoblog :: reflejandome fotoblog [ http://www.reflejandome.com ]
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 03:21 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs