Lori
Full Member
Posts: 856
inherit
20233
0
Aug 23, 2016 22:13:05 GMT -8
Lori
856
February 2004
xlorix
|
Post by Lori on Sept 27, 2005 0:52:55 GMT -8
Forum URL: katebush.proboards6.comI have the cell highlight code in my footer so that it uses an image instead of a colour. When you click the background of the cell, you get my profile, why does it not take you to the board's who's cell that was clicked? My code is as follows... <script> <!-- /* Cell Highlight & Link (modified for image) Copyright © 2003 Craig Suffolk, ProBoards.com All Rights Reserved */
var mouseOverImage = 'http://img331.imageshack.us/img331/2238/ch6nd.gif'; var mouseOverColor = 'FFFBDE'; var statusMessage = 'The Sensual World'; window.status = statusMessage;
cellHigh = document.getElementsByTagName('TD'); for(ch=0;ch<cellHigh.length;ch++) { if((cellHigh[ch].className=="windowbg2" && cellHigh[ch].width=="66%") || (cellHigh[ch].className=="windowbg" && cellHigh[ch].width=="48%")) { if (cellHigh[ch].width=="48%") {var num=0;} else {var num=1;} cellHigh[ch].onmouseover = function(){this.style.cursor='pointer';this.style.backgroundImage='url('+mouseOverImage+')';this.style.backgroundColor=mouseOverColor; window.status=this.getElementsByTagName('b')[0].innerHTML;}; cellHigh[ch].onmouseout = function(){this.style.backgroundImage='';this.style.backgroundColor=this.bgColor;window.status=statusMessage;}; cellHigh[ch].onclick = function(){location = this.getElementsByTagName('a')[num].href;}; }} // --> </script>
|
|
inherit
The Jedi Master of Proboards PBS Oscars: Most Unique
6777
0
Nov 19, 2012 0:15:08 GMT -8
Tommy Huynh
Coffee isn't my cup of tea.
19,374
January 2003
swg2
|
Post by Tommy Huynh on Sept 27, 2005 1:12:16 GMT -8
Forum URL: katebush.proboards6.comI have the cell highlight code in my footer so that it uses an image instead of a colour. When you click the background of the cell, you get my profile, why does it not take you to the board's who's cell that was clicked? My code is as follows... <script> <!-- /* Cell Highlight & Link (modified for image) Copyright © 2003 Craig Suffolk, ProBoards.com All Rights Reserved */
var mouseOverImage = 'http://img331.imageshack.us/img331/2238/ch6nd.gif'; var mouseOverColor = 'FFFBDE'; var statusMessage = 'The Sensual World'; window.status = statusMessage;
cellHigh = document.getElementsByTagName('TD'); for(ch=0;ch<cellHigh.length;ch++) { if((cellHigh[ch].className=="windowbg2" && cellHigh[ch].width=="66%") || (cellHigh[ch].className=="windowbg" && cellHigh[ch].width=="48%")) { if (cellHigh[ch].width=="48%") {var num=0;} else {var num=1;} cellHigh[ch].onmouseover = function(){this.style.cursor='pointer';this.style.backgroundImage='url('+mouseOverImage+')';this.style.backgroundColor=mouseOverColor; window.status=this.getElementsByTagName('b')[0].innerHTML;}; cellHigh[ch].onmouseout = function(){this.style.backgroundImage='';this.style.backgroundColor=this.bgColor;window.status=statusMessage;}; cellHigh[ch].onclick = function(){location = this.getElementsByTagName('a')[num].href;}; }} // --> </script> I believe that this will be better answered in Code Support
|
|
#eb7100
1480
0
1
Nov 26, 2024 16:13:21 GMT -8
Craig
209,199
September 2001
cmdynasty
|
Post by Craig on Sept 27, 2005 4:27:20 GMT -8
Forum URL: katebush.proboards6.comI have the cell highlight code in my footer so that it uses an image instead of a colour. When you click the background of the cell, you get my profile, why does it not take you to the board's who's cell that was clicked? My code is as follows... <script> <!-- /* Cell Highlight & Link (modified for image) Copyright © 2003 Craig Suffolk, ProBoards.com All Rights Reserved */
var mouseOverImage = 'http://img331.imageshack.us/img331/2238/ch6nd.gif'; var mouseOverColor = 'FFFBDE'; var statusMessage = 'The Sensual World'; window.status = statusMessage;
cellHigh = document.getElementsByTagName('TD'); for(ch=0;ch<cellHigh.length;ch++) { if((cellHigh[ch].className=="windowbg2" && cellHigh[ch].width=="66%") || (cellHigh[ch].className=="windowbg" && cellHigh[ch].width=="48%")) { if (cellHigh[ch].width=="48%") {var num=0;} else {var num=1;} cellHigh[ch].onmouseover = function(){this.style.cursor='pointer';this.style.backgroundImage='url('+mouseOverImage+')';this.style.backgroundColor=mouseOverColor; window.status=this.getElementsByTagName('b')[0].innerHTML;}; cellHigh[ch].onmouseout = function(){this.style.backgroundImage='';this.style.backgroundColor=this.bgColor;window.status=statusMessage;}; cellHigh[ch].onclick = function(){location = this.getElementsByTagName('a')[num].href;}; }} // --> </script> There is a more updated code in the FAQ now. That one is the old one.
|
|