Help - Search - Members - Calendar
Full Version: Hover Opacity Blogbody
Forums > Resource Center > Support Center > Xanga Support > Xanga Resolved Topics
Atkascha
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.
Kathleen
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
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
What script are you using for your modules? Maybe that script can be applied to your blog.
Atkascha
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
... 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
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
Go Reili!
Topic Closed
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.