Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


JavaScript News Scroller

Posted on 2005-04-29
Medium Priority
Last Modified: 2008-02-01
I've developed an IFRAME named "if1". In it loads a page that must introduce a News Scroller. I like to scroll my desirect text from bottom to up, alongwith the 'pause'.  activity. On onMouseOver activity, the scrolling must pause till the onMouseOut activity is being called n the text continues scrolling from where it got paused. Could anybody plz write me the code?
Question by:adnan_from_hiit

Author Comment

ID: 13907379
OK its been done. Here is the solution

<style type="text/css">  
.link {
.linkOver {
<script language="JavaScript">
      var i,c=0,scrl=true;;
      function InitialiseScrollableArea(){
            i = divContainer.offsetHeight+10;      
            divContent.style.top = i;
      function ScrollText() {
            if (!scrl) return;
            if (divContent.offsetHeight < divContainer.offsetHeight) {
                  if (i == -divContainer.offsetHeight) i = divContainer.offsetHeight+10;
            if (Math.abs(i) > divContent.offsetHeight) {
                  i = divContainer.offsetHeight+10;      


<body onLoad="InitialiseScrollableArea()">

<div id="divContainer">
  <div id="divContent">
        <a href="#" onMouseOver="javascript:scrl=false;this.className='linkOver';" onMouseOut="javascript:scrl=true;this.className='link'" class="link" style="color:#67777C;">Visit our newly furnished website</a>
        <a href="#" onMouseOver="javascript:scrl=false;this.className='linkOver';" onMouseOut="javascript:scrl=true;this.className='link'" class="link" style="color:#67777C;">Administrators click here</a>


Accepted Solution

PAQ_Man earned 0 total points
ID: 13914014
Question Closed, 50 points refunded.
Community Support Moderator

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

580 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