Log In · Register

 
Hover Opacity Blogbody, It suddenly broke, literally...
Atkascha
post Feb 3 2007, 08:14 PM
Post #1


Newbie
*

Group: Member
Posts: 4
Joined: Sep 2006
Member No: 464,741



Hi, I am usually able to find answers to most of my troubleshooting here. I've put together my xanga with many scripts found here and everything seemed to be in order. Just a few days ago, last Wednesday to be exact, my blogbody is using a hover opacity script which worked previously until that day. There was no additional scripts added during that time. This is the current script I am using:

QUOTE
<!-- start code provided by createblog.com -->
<script language="javascript">
//Sets blog opacity (0-100)
opcty = 10;

//Sets rollover opacity
msvropcty = 100;

////////////////////////////////////

tables = document.getElementsByTagName('table');

for(var j=0;j<tables.length;j++){

if(tables[j].className == "blogbody"){

tables[j].style.filter = "alpha(opacity=" + opcty + ")";
tables[j].onmouseover = function(){this.style.filter = "alpha(opacity=" + msvropcty + ")";}
tables[j].onmouseout = function(){this.style.filter = "alpha(opacity=" + opcty + ")";}

}

}

//--></script>
<!-- end code provided by createblog.com -->


I am using the same script for my left columns and that seems to be working fine. It's just the blogbody that doesn't work. Any ideas is much appreciated! Thanks in advance.
 
 
Start new topic
Replies (1 - 7)
*Kathleen*
post Feb 3 2007, 08:40 PM
Post #2





Guest






Do you mean that it just stopped working altogether? Or is it merely not as transparent as before? pinch.gif Did you try adjusting the opacity level a bit or something? Mrrm can I see your Xanga?
 
Atkascha
post Feb 3 2007, 10:16 PM
Post #3


Newbie
*

Group: Member
Posts: 4
Joined: Sep 2006
Member No: 464,741



Yes, it just stopped working altogether. I've tried replacing the script with the other opacity script which does not include the extra hovering feature and it worked. I'm just puzzled why the original script suddenly doesn't work on the blogbody but works on the left tables.

http://www.xanga.com/Atkascha/
 
*digital.fragrance*
post Feb 3 2007, 11:16 PM
Post #4





Guest






What script are you using for your modules? Maybe that script can be applied to your blog.
 
Atkascha
post Feb 3 2007, 11:33 PM
Post #5


Newbie
*

Group: Member
Posts: 4
Joined: Sep 2006
Member No: 464,741



I am using the same script for both the blogbody and left tables. The tables are working correctly, the blogbody isn't; it just stopped working. I'm not sure if Xanga made a few tweaks here and there. I'll search for the script again to see if it has been updated.
 
talcumpowder
post Feb 4 2007, 01:51 AM
Post #6


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



... The scripts themselves are interferring with each other. I think you might be better off just using the script once and changing this:
CODE
if(tables[j].className == "blogbody"){
to the following:
CODE
if(tables[j].className == "main"){
See if that works.
 
Atkascha
post Feb 4 2007, 02:33 AM
Post #7


Newbie
*

Group: Member
Posts: 4
Joined: Sep 2006
Member No: 464,741



Yup, it works like a charm. Although it doesn't hover over a single entry seperately anymore, it still serves its purpose, plus it's simpler and it suits my tastes better. Much appreciated!
 
*digital.fragrance*
post Feb 4 2007, 10:47 AM
Post #8





Guest






Go Reili!
Topic Closed
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: