Solved

ticker issues with IE

Posted on 2011-02-17
5
278 Views
Last Modified: 2012-05-11
I have a ticker that works fine in safari and firefox.  But for some reason it is not working in explorer.  I have attached an image of the results, and I have attached my code.  Can someone let me know what I am doing wrong?

<!DOCTYPE HTML>

<head>
            
            <style type="text/css">
      html { height: 35px; }
      body,td,th {
        font-family: Verdana, Geneva, sans-serif;
        font-size: 10px;
		margin-left: 0px;
		margin-top: 0px;
		margin-right: 0px;
		margin-bottom: 0px;
		}
a:link { COLOR: #0e71f6; }
a:visited { COLOR: #0e71f6; }
white-space: nowrap;

</style>

</head>

<body>

<DIV ID="TICKER" STYLE="display:none; border-top:0px solid #ffffff; border-bottom:1px solid #cccccc; overflow:hidden; background-image: url(../datagrid/images/body_bg.gif); width:700px" onMouseOver="TICKER_PAUSED=true" onMouseOut="TICKER_PAUSED=false">

	<span style='background-image: url(../datagrid/images/head_bg.gif);'> &nbsp; &nbsp; <font color=#666666> <B>TOP 20 RANKING</B></font>&nbsp; &nbsp; </span> &nbsp;<?php print "$xmlBody"; ?>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
	<span style='background-image: url(../datagrid/images/head_bg.gif);'> &nbsp; &nbsp; <font color=#666666> <B>MOST FRIENDS</B></font>&nbsp; &nbsp; </span> &nbsp; <?php print "$xml2Body"; ?>&nbsp; 
	<span style='background-image: url(../datagrid/images/head_bg.gif);'> &nbsp; &nbsp; <font color=#666666> <B>MOST COMMENTS RECEIVED</B></font>&nbsp; &nbsp; </span> &nbsp; <?php print "$xml3Body"; ?>&nbsp;</DIV>

	<script type="text/javascript" src="../webticker_lib.js" language="javascript"></script>

	</body>

</html>

Open in new window

ticker.jpg
0
Comment
Question by:MsKrissy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 23

Expert Comment

by:wdosanjos
ID: 34918333
You also need to specify the 'height' on your DIV.  Something like:

<DIV ID="TICKER" STYLE="display:none; border-top:0px solid #ffffff; border-bottom:1px solid #cccccc; overflow:hidden; background-image: url(../datagrid/images/body_bg.gif); width:700px; height:20px;" onMouseOver="TICKER_PAUSED=true" onMouseOut="TICKER_PAUSED=false">

I hope this helps.
0
 

Author Comment

by:MsKrissy
ID: 34918509
I did that, it reduced the size, but the scrolling still does not occur in IE, is there some kind of "no wrap" specification I can add?
0
 
LVL 23

Accepted Solution

by:
wdosanjos earned 500 total points
ID: 34918825
Yes,  please try the following:

<DIV ID="TICKER" NOWRAP STYLE="display:none; border-top:0px solid #ffffff; border-bottom:1px solid #cccccc; overflow:hidden; background-image: url(../datagrid/images/body_bg.gif); width:700px; height:20px;" onMouseOver="TICKER_PAUSED=true" onMouseOut="TICKER_PAUSED=false">

BTW, here is the IE reference for the DIV tag:
http://msdn.microsoft.com/en-us/library/ms535240(v=VS.85).aspx
0
 

Author Comment

by:MsKrissy
ID: 34918900
I had to move the nowrap to this location, and it worked great, thank you very much!

<DIV ID="TICKER" STYLE="white-space:nowrap; display:none; border-top:0px solid #ffffff; border-bottom:1px solid #ffffff; overflow:hidden; background-image: url(../datagrid/images/body_bg.gif); width:700px; height:15px;" onMouseOver="TICKER_PAUSED=true" onMouseOut="TICKER_PAUSED=false">
0
 

Author Closing Comment

by:MsKrissy
ID: 34918909
thank you again for the help.
0

Featured Post

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question