Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ticker issues with IE

Posted on 2011-02-17
5
Medium Priority
?
279 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

688 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