Advertisement

11.03.2004 at 03:47AM PST, ID: 21192828
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

Fade in and out and error problems with the script below.

Asked by pigmentarts in JavaScript

Tags: ,

Thank you again for all your help guys so far, have 2 issues with the code below as with my very limited experience of JavaScript (just going on a few hours now lol) was wondering if anyone could help.

1) The code does its job but it seems to change to boldly when it comes in, you will see what I mean if you test it, it comes in to bold, and can anyone make it smoother and fade in nicely.

2) 2nd problem the error catch at the end of the statement does not work correctly, I mean when I run it in Netscape which I have been told does not support this script the error message does not show.

PS, Practical example using the code below would be a big help

 
<!-- This element has the filter applied. -->

<DIV ID="oTransContainer" STYLE="
height:0px; color: #F7F7F7; filter:progid:DXImageTransform.Microsoft.Fade(duration=1.0,overlap=5.0) ">

<!-- This is the first content that is displayed. -->

    <DIV ID="oDIV1" STYLE="
height:0px; color: #F7F7F7;"> </DIV>

<!-- This content displays after the first content. -->

    <DIV ID="oDIV2" STYLE="
height:0px; color: BLACK;"> </DIV>
</DIV>


<SCRIPT>

  try{


var bTranState = 0;

var Quotes = new Array();

Quotes[0] = "I have been a client of Connecting London for well over five years. Their service is always courteous, personal and efficient. N. Zayan (Private Client)";
Quotes[1] = "We have been using Connecting London for over ten years for all our IT needs, from telephone systems and mobile phones to computers and handhelds. They are always helpful, and professional and we have complete confidence in them.  Georgia Oetker (Private Client)";
Quotes[2] = "For more than twenty years Connecting London has supported the technology we use in our businesses. More recently they have helped us develop successful websites which are visible and get great results with the main search engines. J V Neville-O'Brien, Leisure Finance Ltd. (Corporate Client)";
Quotes[3] = "We have been using Connecting London as our IT Consultants for the past 3 years and have always found the service friendly and very helpful. Rebecca Maxwell, Sloane Management Limited";
Quotes[4] = "We turned to Connecting London to help set up our London based offices, after a bad experience with a poorly motivated provider. Since our decision, we have enjoyed a high level of expertise and prompt service at a competitive price. Reagan Thompson, AdAstra Partners International";
function quotePrint()
{
  var index = parseInt(Math.random()*Quotes.length);
  return Quotes[index];
}

function fnToggle() {
    oTransContainer.filters[0].Apply();
    if (bTranState=='0') {
        bTranState = 1;
        oDIV2.style.visibility="visible";
        oDIV1.style.visibility="hidden";
        oDIV2.innerHTML = quotePrint();
    }
    else {  
        bTranState = 0;
        oDIV2.style.visibility="hidden";
        oDIV1.style.visibility="visible";
//        oDIV1.innerHTML = quotePrint();
    }
    oTransContainer.filters[0].Play();
  setTimeout("fnToggle()","5000");
}
  setTimeout("fnToggle()","0.5");


   var z=0;
   var x=1/z;
}catch(e){
   alert("Seems that your Browser doesn't support my script !!!");
}

</SCRIPT>  
Start Free Trial
[+][-]11.03.2004 at 04:19AM PST, ID: 12482332

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.03.2004 at 04:35AM PST, ID: 12482424

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.03.2004 at 05:47AM PST, ID: 12482949

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Tags: fade, javascript
Sign Up Now!
Solution Provided By: ragerino
Participating Experts: 1
Solution Grade: A
 
 
[+][-]11.03.2004 at 05:56AM PST, ID: 12483043

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.03.2004 at 06:14AM PST, ID: 12483182

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32