473,230 Members | 1,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,230 software developers and data experts.

Help with a marquee.

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 2312
acoder
16,027 Expert Mod 8TB
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
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 Expert Mod 8TB
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
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...
6
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,...
1
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...
2
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...
1
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...
5
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...
10
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...
5
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...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.