473,768 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with a marquee.

12 New Member
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 expensive so it may take a few seconds to load.

Te code:


Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <body>
  3. //1. Draws the down marquee
  4. <marquee direction = "down" width = 45 height = 700 vspace="2" hspace="2" style="position:absolute; right: 2px; background: green; font-family:arial">
  5.  
  6.  
  7. <script type="text/javascript">
  8.  
  9. for (i = 39500; i <= 40000; i++)
  10. {
  11. document.write(String.fromCharCode(i).fontcolor("Blue").fontsize(16) );
  12. document.write("<br />");
  13.  
  14. }
  15. </script>
  16.  
  17.  
  18.  
  19.  
  20. </marquee>
  21.  
  22.  
  23. //2. Draws the right marquee
  24. <marquee direction = "right" width = 900 style="position:relative; left: 60px; background: green; font-family:arial">
  25.  
  26.  
  27. <script type="text/javascript">
  28.  
  29. for (i = 39500; i <= 40000; i++)
  30. {
  31. document.write(String.fromCharCode(i).fontcolor("Blue").fontsize(16) );
  32.  
  33. }
  34. </script> 
  35. </marquee>
  36.  
  37.  
  38.  
  39.  
  40. //3. Draws the up marquee the one giving me problems its border usurps the //window. Change color for illustartion
  41. <marquee direction="up" " " vspace="5" hspace="5" border-width: 3px align="left" width="45" height="500" style="font-size:12px;color:#000000;font-family:verdana;">
  42.  
  43. <script type="text/javascript">
  44.  
  45. for (i = 39500; i <= 40000; i++)
  46. {
  47. document.write(String.fromCharCode(i).fontcolor("Blue").fontsize(16) );
  48. document.write("<br />");
  49. }
  50. </script>
  51. </marquee>
  52.  
  53.  
  54.  
  55.  
  56.  
  57. <marquee direction = "left" width = 900 height = 45  align = "right" scrollamount = 5 background: green;
  58.   style= "background: red; border = 0; font-family:arial">
  59.  
  60.  
  61. <script type="text/javascript">
  62.  
  63. for (i = 39500; i <= 40000; i++)
  64. {
  65. document.write(String.fromCharCode(i).fontcolor("Blue").fontsize(16) );
  66.  
  67. }
  68. </script>
  69. </marquee>
  70.  
  71. <p align=center>Explanation:</p>
  72.  
  73. <p align=center>This is a marquee character loop starts with i=0.</p>
  74.  
  75.  
  76.  
  77.  
  78.  
  79. </body>
  80. </html>
Nov 2 '08 #1
3 2338
acoder
16,027 Recognized Expert Moderator MVP
The marquee tag is non-standard and not recommended.

However, I notice some extra quotes on line 41 which might cause some problems.
Nov 3 '08 #2
Rajneesh Chellapilla
12 New Member
Thanks much. I notice you help a lot of people here.

I will try removing the quotes.

Is there a more standard way of doing a marquee in javascript?
Nov 4 '08 #3
acoder
16,027 Recognized Expert Moderator MVP
Not by using the marquee tag. You can, however, create a marquee effect using JavaScript only (style.left/style.top and setInterval, etc.)
Nov 4 '08 #4

Sign in to post your reply or Sign up for a free account.

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">
6
6328
by: mike | last post by:
Hello, After trying to validate this page for a couple of days now I was wondering if someone might be able to help me out. Below is a list of snippets where I am having the errors. 1. Line 334, column 13: there is no attribute "SRC" <bgsound src="C:\My Documents\zingwent.mids"> You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is...
1
6479
by: Sketcher | last post by:
Hi all, I am looking to add the following scrolling marquee to my website (see code below) However instead of using the marquee methods I want to use and as a person rests their mouse on either word 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.
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.
1
2039
by: silentscreams22 | last post by:
I need this converted. <marquee behavior="scroll" direction="down" scrollamount="3" style="position:absolute; left:110px; top:150px; width:16px; height:483px; z-index:1;"><span class="falling1"><img src="http://i87.photobucket.com/albums/k139/hi5love/fallinghearts.gif"></span></marquee> <marquee behavior="scroll" direction="down" scrollamount="2" style="position:absolute; left:169px; top:170px; width:16px; height:411px; z-index:1;"><span...
5
3696
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually for repeated html im using the external js, i mean the TOP, BOTTOM they are repeated in every page, so i include them as functions in the external js and call them. Why it doesn't work?
10
2962
by: CDFTim | last post by:
O.K. that was a long Title... Can you help / show me how I would......... I am going to long windedly try to paint this picture. Backround: I have an html page that has a marquee function in it to display a small photo and other information to scroll in a box on the web page. The marquee's info is a table with data that I now insert manually. I would like to be able to insert the data into it from a mysql database. The marquee works by...
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...
0
9407
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10176
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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
5285
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.
3
2808
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.