Wednesday 21 September 2011

Onmouseover not working...?

So on my website (under construction) http://www.habbomylife.com/ on the right hand menu when you put your mouse over a cell it changes colour from black to grey, but first changes to blue. How do I stop it from going blue?
Onmouseover not working...?
Try correcting your 21 critical HTML coding errors first:



http://validator.w3.org/check?verbose=1%26amp;鈥?/a>



No document type puts all browsers in Quirks Mode and you lose any control over your page layout.



HTML Tidy flagged these:



Result: 0 errors / 63 warnings



line 1 column 1 - Warning: missing %26lt;!DOCTYPE%26gt; declaration

line 56 column 1 - Warning: missing %26lt;/a%26gt; before %26lt;/td%26gt;

line 63 column 1 - Warning: missing %26lt;/a%26gt; before %26lt;/td%26gt;

line 69 column 1 - Warning: missing %26lt;/a%26gt; before %26lt;/td%26gt;

line 88 column 4 - Warning: %26lt;td%26gt; missing '%26gt;' for end of tag

line 89 column 2 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 89 column 2 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 89 column 2 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 89 column 2 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 89 column 2 - Warning: %26lt;td%26gt; missing '%26gt;' for end of tag

line 93 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 93 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 93 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 93 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 93 column 4 - Warning: %26lt;td%26gt; missing '%26gt;' for end of tag

line 97 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 97 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 97 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 97 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 97 column 4 - Warning: %26lt;td%26gt; missing '%26gt;' for end of tag

line 101 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 101 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 101 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 101 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 101 column 4 - Warning: %26lt;td%26gt; missing '%26gt;' for end of tag

line 105 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 105 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 105 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 105 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 105 column 4 - Warning: %26lt;td%26gt; missing '%26gt;' for end of tag

line 109 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 109 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 109 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 109 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 109 column 4 - Warning: %26lt;td%26gt; missing '%26gt;' for end of tag

line 113 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 113 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 113 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 113 column 4 - Warning: %26lt;td%26gt; unexpected or duplicate quote mark

line 113 column 4 - Warning: %26lt;td%26gt; missing '%26gt;' for end of tag

line 9 column 1 - Warning: %26lt;script%26gt; inserting %26quot;type%26quot; attribute

line 44 column 8 - Warning: %26lt;table%26gt; proprietary attribute %26quot;height%26quot;

line 47 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 50 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 54 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 58 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 61 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 67 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 73 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 76 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 77 column 28 - Warning: %26lt;table%26gt; proprietary attribute %26quot;height%26quot;

line 82 column 6 - Warning: %26lt;iframe%26gt; proprietary attribute %26quot;border%26quot;

line 82 column 6 - Warning: %26lt;iframe%26gt; attribute %26quot;scrolling%26quot; has invalid value %26quot;vertical%26quot;

line 88 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 89 column 2 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 93 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 97 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 101 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 105 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 109 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 113 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 117 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;

line 119 column 4 - Warning: %26lt;td%26gt; proprietary attribute %26quot;background%26quot;





Ron
Onmouseover not working...?
doesn't work in FF or IE7
needs to be if you are using javascript which is what the this. refers to

onmouseover=%26quot;javascript: this.style.background-color = gray;%26quot;



or



you should use css which is even better



http://www.w3schools.com/css/pr_pseudo_h鈥?/a>
%26lt;script type=%26quot;text/javascript%26quot;%26gt;

function mouseover(_status)

{



switch (_status)

{

case %26quot;about%26quot; :

document.getElementById( %26quot;aboutcell%26quot; ).bgColor = %26quot;black%26quot;;

break;

}



}



function mouseout(_status)

{



switch (_status)

{

case %26quot;about%26quot; :

document.getElementById( %26quot;aboutcell%26quot; ).bgColor = %26quot;yellow%26quot;;

break;

}



}



function mouseclick(_status)

{

//do something according to what you clicked

}

%26lt;/script%26gt;



%26lt;table border=1%26gt; %26lt;tr%26gt; %26lt;td id=%26quot;aboutcell%26quot;%26gt;

%26lt;a href=%26quot;aboutme.html%26quot; alt=%26quot;about%26quot; onmouseover=%26quot;mouseover('about')%26quot; onmouseout=%26quot;mouseout('about')%26quot; onclick=%26quot;mouseclick('about')%26quot; /%26gt; about me



%26lt;/a%26gt;

%26lt;/td%26gt; %26lt;/tr%26gt;