Ticker problems viewing in IE


  -----  
Author Message

assiejack
Member

Mon Jun 04, 2007 8:30 am   Post subject: Ticker problems viewing in IE
Ok maybe you could help with my next problem but it is java related so was not sure if allowed to post here.

The problem i have is my ticker (no not my heart) on my phpbb2 forum.

All is working ok when viewing though FireFox the ticker is transparent and the text is black which is perfect for the theme i am using.

However when viewing though IE the background becomes white, and the text becomes blue and all the text becomes hyper links.

I have tried to take out the hyper links but this stopped the ticker form working.

So the question is , is it possible to make
e the IE look the exact same as the Fire Fox look.

Here is the code that i am using i have it in my ticker.html and link to it from the forum using an iframe.


Code:

<body>
<div class="ticki"> <a id="tickerAnchor" href="#" target="_top" class="tickl"></a></div>

<script language="JavaScript" type="text/javascript">
<!--
// Ticker startup
function startTicker()
{
    // Define run time values
    theCurrentStory     = -1;
    theCurrentLength    = 0;
    // Locate base objects
    if (document.getElementById) {   
            theAnchorObject     = document.getElementById("tickerAnchor");
            runTheTicker();       
         }
    else {
            document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>");
            return true;
    }
}
// Ticker main run loop
function runTheTicker()
{
    var myTimeout; 
    // Go for the next story data block
    if(theCurrentLength == 0)
    {
        theCurrentStory++;
        theCurrentStory      = theCurrentStory % theItemCount;
        theStorySummary      = theSummaries[theCurrentStory].replace(/"/g,'"');       
        theTargetLink        = theSiteLinks[theCurrentStory];
        theAnchorObject.href = theTargetLink;
        thePrefix          = "<span class=\"tickls\">" + theLeadString + "</span>";
    }
    // Stuff the current ticker text into the anchor
    theAnchorObject.innerHTML = thePrefix +
    theStorySummary.substring(0,theCurrentLength) + whatWidget();
    // Modify the length for the substring and define the timer
    if(theCurrentLength != theStorySummary.length)
    {
        theCurrentLength++;
        myTimeout = theCharacterTimeout;
    }
    else
    {
        theCurrentLength = 0;
        myTimeout = theStoryTimeout;
    }
    // Call up the next cycle of the ticker
    setTimeout("runTheTicker()", myTimeout);
}
// Widget generator
function whatWidget()
{
    if(theCurrentLength == theStorySummary.length)
    {
        return theWidgetNone;
    }

    if((theCurrentLength % 2) == 1)
    {
        return theWidgetOne;
    }
    else
    {
        return theWidgetTwo;
    }
}
// -->
</script>
   

   
    <script language="JavaScript" type="text/javascript">
    <!--

    var theCharacterTimeout = 50;
    var theStoryTimeout     = 5000;
    var theWidgetOne        = "_";
    var theWidgetTwo        = "-";
    var theWidgetNone       = "";
    var theLeadString       = "";

    var theSummaries = new Array();
    var theSiteLinks = new Array();

// This is where you say how many links you want....

    var theItemCount = 13;

        theSummaries[0] = "Welcome To <b>HOWTODOIT</b> Your One Stop Guide To <b>Myfreeforum</b>.    Please Use The Search It Is There To Help You.   ";
theSiteLinks[0] = "http:// your link here";

     

        theSummaries[1] = "New Myfreeforum Arcade Coming Soon Play Games And compete Against Over 10,000 Forums";
theSiteLinks[1] = "http:// your link here";
       
   
        theSummaries[2] = "<b>Portals ??? </b> If You Can Not Find Your Answer Here, Or You Wish To Request One, Then Why Not Try----> ";
theSiteLinks[2] = "http:// your link here";
       
   
        theSummaries[3]="------------------------------------------------><b>Portalogy</b><------------------------";
        theSiteLinks[3] = "http://portalogy.myfastforum.org";


 theSummaries[4] = "The Only Portal help Site On The Myfreeforum System------>Run By Our Portal King <b>Nick(NR)</b>,---------";
theSiteLinks[4] = "http:// your link here";
       

theSummaries[5] = "Do You Need Banners, Logos , Icons Or Any Art Done For Free By <b>Bravo</b> And His Team Then Why Not Try -----------> . ";
theSiteLinks[5] = "http:// your link here";
       

theSummaries[6] = " ----------------------------------------------><b>CGARTS</b><-------------- . ";
        theSiteLinks[6] = "http://cgarts.myfreeforum.org";


theSummaries[7] = "My <b>Top Forum</b> Link Goes To ----------> . ";
theSiteLinks[7] = "http:// your link here";
       

theSummaries[8] = "---------------------------------------> <b>BABBLING BOOKS</b> <---------------------------- . ";
        theSiteLinks[8] = "http://www.babblingbooks.org.uk";

theSummaries[9] = "A Very Well Run Forum With A Fresh Clean Crisp look About It, Also A forum based On Posts Not Extras. ";
        theSiteLinks[9] = "http:// your link here";

 theSummaries[10] = "There Are At The Moment No Major Updates that Have Been Released The Next One On The List Is  <b>Myfreeforum Arcade</b>. ";
theSiteLinks[10] = "http:// your link here";
       

theSummaries[11] = "I Hope This Site Has Been Useful, Remember This <b>You Learn Nothing By Copy And Paste</b>---------->. ";
theSiteLinks[11] = "http:// your link here";
       

theSummaries[12] = "<b>Symon</b> Says <b>Practice Makes for True Knowledge.</b>";
       theSiteLinks[12] = "http:// your link here";
 



           

    startTicker();
   
    //-->
    </script>
</body>
</html>


To view what i mean http://howtodoit.myfreeforum.org
 

assiejack
Member

Mon Jun 04, 2007 11:11 am   Post subject:
And i would like to change my email address in my profile but ever time i change it it goes back to my old one so i,m not picking up notices from here Crying or Very sad Crying or Very sad
 

Thoul
Administrator

Mon Jun 04, 2007 2:20 pm   Post subject: Re: Ticker problems viewing in IE
Make sure you confirm the new e-mail in the box provided for it and that you enter your password when changing your e-mail. The e-mail changes work fine when I test them, but you have to enter your password for the change to take.

Now, for the ticker. This script is using InnerHTML, which I am not familiar with, so I'm going to guess a little bit here. It looks like the text is printed by adding it to the inside of the link near the top of the page:

Code:

<a id="tickerAnchor" href="#" target="_top" class="tickl"></a>

If I'm reading that right, the only way to prevent the links on all the text would be to rewrite the code so that the link HTML is printed with the text. That might be hard to do; it would be a total rewrite of the script.

I'm not sure how to remove the white background in IE. It might be something you could do by adding background-color: transparent; or background: none; to a .tickl class in the stylesheet used by this page.
 

Page 1 of 1
Display posts from previous: