473,768 Members | 5,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Marquee

Hi all,

I am looking to add the following scrolling marquee to my website (see code
below)

However instead of using the marquee methods [start | Stop] I want to use
[Up | Down]
and as a person rests their mouse on either word [up | down] the list will
scroll accordingly. I do not want the text to scroll continously - it should
only operate when the Up | Down feature is used.
Any ideas,

thanks.

Sketch.
<marquee id="scroller" direction=up width=100 height=100
style="backgrou nd-color:#cccccc;b order:0px">
Message 1<br>
Message 2<br>
Message 3<br>
Message 4<br>
Message 5<br>
Message 6<br>
Message 7<br>
</marquee><br>

<a href="javascrip t:scroller.star t()">Start</a> | <a
href="javascrip t:scroller.stop ()">Stop</a>

<script>
if (document.all)
scroller.stop()
</script>
Jul 23 '05 #1
1 6478
"Sketcher" <sk******@eirco m.net> wrote in message
news:pH******** **********@news .indigo.ie...
Hi all,

I am looking to add the following scrolling marquee to my website (see code below)

However instead of using the marquee methods [start | Stop] I want to use
[Up | Down]
and as a person rests their mouse on either word [up | down] the list will
scroll accordingly. I do not want the text to scroll continously - it should only operate when the Up | Down feature is used.
Any ideas,

thanks.

Sketch.
<marquee id="scroller" direction=up width=100 height=100
style="backgrou nd-color:#cccccc;b order:0px">
Message 1<br>
Message 2<br>
Message 3<br>
Message 4<br>
Message 5<br>
Message 6<br>
Message 7<br>
</marquee><br>

<a href="javascrip t:scroller.star t()">Start</a> | <a
href="javascrip t:scroller.stop ()">Stop</a>

<script>
if (document.all)
scroller.stop()
</script>

"<MARQUEE ...> creates a scrolling display.
<MARQUEE ...> is an MSIE extension, but is now supported by NS 7."
http://www.htmlcodetutorial.com/_MARQUEE.html

The following works under IE5.5; watch for word-wrap:

<html>
<head>
<title>marquees .htm</title>
</head>
<body>
<marquee id="scroller" direction="up"
width="100" height="50"
style="backgrou nd-color:#CCCCCC; border:1px solid">
<br> &nbsp; Message 1
<br> &nbsp; Message 2
<br> &nbsp; Message 3
<br> &nbsp; Message 4
<br> &nbsp; Message 5
<br> &nbsp; Message 6
<br> &nbsp; Message 7
</marquee>
<br>
<button onmouseover="sc roll(0)"
onmouseout="scr oller.stop()"
style="width:50 ">Up</button>
<button onmouseover="sc roll(1)"
onmouseout="scr oller.stop()"
style="width:50 ">Down</button>
<script type="text/javascript">
function scroll(what) {
var dirs = new Array("up", "down");
document.getEle mentById("scrol ler").directio n = dirs[what];
scroller.start( );
}
if (document.all) scroller.stop() ;
</script>
</body>
</html>
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3391
by: Jo_Calico | last post by:
I love the Dynamic Drive cross browser marquee script. I'd like to make the text loop immediately after completion, so the beginning runs right after the end (does that make sense?). Could anyone tell me how to do this? Here's the link: http://www.calicosystems.com/pilla/index1.htm Here's the code: <script language="JavaScript1.2">
5
3615
by: David Ross | last post by:
Although some browsers support the MARQUEE tag, it is not defined in the HTML 4.01 specification. This tag creates a scrolling line of text. It works with Mozilla 1.6 and supposedly with Internet Explorer. Is there a way to get a scrolling line of text within the HTML 4.01 or CSS specifications without resorting to Java or JavaScript? --
15
10418
by: charlie fortune | last post by:
I'm quite new to HTML, and have seen <marquee> get bad press here. What's wrong with using it. I wanted to have the contents of a .txt file scrolling for news items, can I do this with marquee, or should I be looking at applets ?
2
4274
by: P2P | last post by:
Hi I am wondering if someone can help me here with the "perfect" marquee vertical scrolling script I've found. This marquee is great for me as it will call an external html page. This allow me to design a html page and update just that page without having to muck around on coding with the main page. There is one thing I like to have this marquee script able to do for me.
56
3802
by: Ed Jay | last post by:
I note in an Eric Meyers book that he expresses one goal of using CSS is to eliminate all <brtags. Why? -- Ed Jay (remove 'M' to respond by email)
8
12619
praclarush
by: praclarush | last post by:
Ok, I'm new to JavaScript and I'm taking a class for it the assignment in it I'm supposed to create edit a pre-made page to display a marquee that automatically scrolls for the user, as well as give an option to start, stop and reset the marquee. Now I have most of this done already, what I'm having problems with is that when i start the marquee it moves to the right, but i need to have it move from the bottom, upwards. heres my code (I'm not...
1
2686
by: ced69 | last post by:
having trouble getting marquee to work get object required errors tring t <title>This Month at the Chamberlain Civic Center</title> <link href="styles.css" rel="stylesheet" type="text/css" /> <script src="Dunbarlab9.js" type="text/javascript"></script> <script type="text/javascript">
5
4973
by: 000baaa000 | last post by:
The following HTML marquee code works better in Microsoft Internet Explorer, breaks (in more than one way) in Mozzila Firefox <pre>------------------------------------------------- start HTML code ------------------------------ <marquee> <marquee width=100% direction=up> <CENTER><marquee width=50% BGCOLOR=ORANGE>INNER 1</marquee> <br> <CENTER><marquee width=60% BGCOLOR=BLUE...
3
2338
by: Rajneesh Chellapilla | last post by:
Hi I made this marquee program however, I am having trouble getting all four marquees to line up correctly. Basically I want the the 4 marquees to line up on the four sides exactly so they intersect. Three of them look good. With fourth the marquee does something funny this is illustrated if you change the border color of the "up" marquee in the program. Help and insights would be appreciated. Here is the program, it is computationally...
0
10018
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9963
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9844
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8840
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6656
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5284
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5425
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3933
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3540
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.