Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Javascript Marquee

Featured Replies

Hya, I've been trying to get a marquee working for my site, and would like it to use an external file for the text that it scrolls.

 

Currently nothing is showing up except for a little space where it should be that is only visible when I highlight the page by selecting edit>select all

 

I have used the script avaliable here

 

 

 

but instead of inserting the script into the body I have put it into an external .js

 

my script is the same as theirs except I have made the links point to my documents instead of the samples they gave, however I will paste it here incase I have managed to delete one vital full stop or something.

 

<IE:Download ID="marqueedata" STYLE="behavior:url(#default#download)" />

<marquee id="externalmarquee" direction=up scrollAmount=4 style="width:200px;height:150px;border:1px solid black;padding:3px" onMouseover="this.scrollAmount=2" onMouseout="this.scrollAmount=4" src="News.htm">

</marquee>

 

 

<script language="JavaScript1.2">

 

 

function downloaddata(){

marqueedata.startDownload(externalmarquee.src,displaydata)

}

 

function displaydata(data){

externalmarquee.innerHTML=data

}

 

if (document.all)

window.onload=downloaddata

 

 

</script>

 

<![endif]-->

 

I'm guessing it's because I have incorrectly moved the code from inside the HTML to the external .js, but if someone could help me fix it that would be great.

 

Cheers,

 

Al

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.