Solved

ticker issues with IE

Posted on 2011-02-17
5
275 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
  • 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
align Linkedin sign to the right page 5 37
Border and image sizing 5 20
CSS: Making Pure CSS read more boxes thinner 5 31
How to show span when clicked on? 10 24
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

825 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