Post by pierreg on Feb 15, 2013 3:41:46 GMT -8
Old forum: babbelbar.proboards.com/index.cgi
New V5 forum: gerardjolingbabbelba.freemessageboards.com
In the previous version I had a script in the footer of the main page that replaces the mouseover highlight of the boards with an image.
This script does not seem to function in V5.
How can I restore this highlight function?
<script type="text/javascript">
<!--
/*
Main page/boards image highlight
Created by Peter
This code cannot be reposted at anywhere other than SSDesigns or ProBoards, without permission.
This header must stay intact at all times.
*/
// Image for the mouseover
var overImage = "http://members.chello.nl/p.goolaerts/Angel/highlightGJ1.jpg";
var iCell = document.getElementsByTagName("td");
for(c = 0; c < iCell.length; c ++){
if(iCell.item(c).className.match(/^windowbg/i) && iCell.item(c).width.match(/^(66|48|43)%/)){
if(document.all){
iCell.item(c).onmouseenter = function(){
this.style.backgroundImage = "url('" + overImage + "')";
}
iCell.item(c).onmouseleave = function(){
this.style.backgroundImage = "";
}
} else {
for(a = 0; a < iCell.item(c).attributes.length; a ++){
if(iCell.item(c).attributes.item(a).nodeName.match(/^onmouseover$/i)){
with(iCell.item(c).attributes.item(a)){
nodeValue = "this.style.backgroundImage = 'url(\\'" + overImage + "\\')'; " + nodeValue;
}
}
if(iCell.item(c).attributes.item(a).nodeName.match(/^onmouseout$/i)){
with(iCell.item(c).attributes.item(a)){
nodeValue = "this.style.backgroundImage = ''; " + nodeValue;
}
}
}
}
}
}
//-->
</script>
New V5 forum: gerardjolingbabbelba.freemessageboards.com
In the previous version I had a script in the footer of the main page that replaces the mouseover highlight of the boards with an image.
This script does not seem to function in V5.
How can I restore this highlight function?
<script type="text/javascript">
<!--
/*
Main page/boards image highlight
Created by Peter
This code cannot be reposted at anywhere other than SSDesigns or ProBoards, without permission.
This header must stay intact at all times.
*/
// Image for the mouseover
var overImage = "http://members.chello.nl/p.goolaerts/Angel/highlightGJ1.jpg";
var iCell = document.getElementsByTagName("td");
for(c = 0; c < iCell.length; c ++){
if(iCell.item(c).className.match(/^windowbg/i) && iCell.item(c).width.match(/^(66|48|43)%/)){
if(document.all){
iCell.item(c).onmouseenter = function(){
this.style.backgroundImage = "url('" + overImage + "')";
}
iCell.item(c).onmouseleave = function(){
this.style.backgroundImage = "";
}
} else {
for(a = 0; a < iCell.item(c).attributes.length; a ++){
if(iCell.item(c).attributes.item(a).nodeName.match(/^onmouseover$/i)){
with(iCell.item(c).attributes.item(a)){
nodeValue = "this.style.backgroundImage = 'url(\\'" + overImage + "\\')'; " + nodeValue;
}
}
if(iCell.item(c).attributes.item(a).nodeName.match(/^onmouseout$/i)){
with(iCell.item(c).attributes.item(a)){
nodeValue = "this.style.backgroundImage = ''; " + nodeValue;
}
}
}
}
}
}
//-->
</script>