473,395 Members | 1,442 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,395 software developers and data experts.

JavaScript code works fine in IE but could not support mozilla, chrome

9
I have done this code in shrepoint 2013 script editor it does not support in mozilla ,chrome etc but it worka fine in IE.. PLEASE GIVE ME SOLUTION FOR THIS IMMEDIATELY


Expand|Select|Wrap|Line Numbers
  1. <html> <head> <SCRIPT type="text/JavaScript"> 
  2.  
  3. var scroller_msg='Hello guys!!!!!!!'
  4. var dismissafter=0
  5.  
  6. var initialvisible=0
  7.  
  8. if (document.all)
  9. document.write('<marquee id="curscroll" style="position:absolute;
  10. width:90px;border:1px dotted silver; 
  11. font-family:Tahoma;font-size:15px ;background-color:#EDF09C ;
  12. visibility:True">'+scroller_msg+'</marquee>')
  13.  
  14.  
  15. </script> </head> <body> </body> </html>
Mar 6 '13 #1
7 2212
Rabbit
12,516 Expert Mod 8TB
Please use code tags when posting code. And please do not DEMAND SOLUTIONS IMMEDIATELY.

The marquee element is not valid HTML and is supported only by IE. You will have to mimic the effect of a marquee on other browsers by using javascript.
Mar 6 '13 #2
acoder
16,027 Expert Mod 8TB
Your biggest issue is your use of document.all.

PS. moved to JavaScript.
Mar 7 '13 #3
Unkno
9
Now the code works fine... thankx for ur reply :)
Mar 8 '13 #4
acoder
16,027 Expert Mod 8TB
Could you post the final working solution for the benefit of others?
Mar 8 '13 #5
simum
4
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <SCRIPT type="text/JavaScript"> 
  4. var scroller_msg='Hello guys!!!!!!!'
  5. document.write('<marquee id="curscroll" style="position:absolute;width:90px;border:1.5px dotted silver; font-family:Tahoma;font-size:15px ;background-color:#ECB66B ;visibility:True">'+scroller_msg+'</marquee>')
  6.  
  7. </script>
  8. </head>
  9. <body>
  10. </body>
  11. </html>
This is the code that works fine in all browsers :)
Mar 11 '13 #6
Unkno
9
Expand|Select|Wrap|Line Numbers
  1. <html>
  2.  <head>
  3.  <SCRIPT type="text/JavaScript"> 
  4. var scroller_msg='Hello guys!!!!!!!'
  5.  document.write('<marquee id="curscroll" style="position:absolute;width:90px;border:1.5px dotted silver; font-family:Tahoma;font-size:15px ;background-color:#ECB66B ;visibility:True">'+scroller_msg+'</marquee>')
  6.  
  7. </script>
  8.  </head>
  9.  <body>
  10.  </body>
  11.  </html>
ya this code works fine :)
Mar 11 '13 #7
acoder
16,027 Expert Mod 8TB
Unless this happens to be the start of a larger program or simply a test, there doesn't seem to be any benefit in using JavaScript here. You could have just as easily used HTML only.
Mar 13 '13 #8

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

Similar topics

1
by: SM | last post by:
Hi , I am using a window.open function to popup window in my C# code in this manner . Response.Write("<SCRIPT language=\"javascript\">"); Response.Write(String.Format("window.open(\"{0}...
1
by: Razarr69 | last post by:
I have a ASP application that I am using for my company and it is currently running on a Windows 2000 server box with IIS 5. The code works perfectly there (except for handling large files - due...
3
by: C#_learner | last post by:
function sortTable( ao_table, ai_sortcol, ab_header ) { var ir, ic, is, ii, id; ir = ao_table.rows.length; if( ir < 1 ) return; ic = ao_table.rows.cells.length; // if we have a header...
19
by: pkirk25 | last post by:
I wonder if anyone has time to write a small example program based on this data or to critique my own effort? A file called Realm List.html contains the following data: Bladefist-Horde...
2
by: .spider | last post by:
Hi, This code emails the contents of 'TextBox1' and 'TextBox3' to rcv@domain.com.. this code seemed to be working fine in debug mode and DID mail rcv@domain.com However when i uploaded the website...
1
by: Harch84 | last post by:
Hi guys I have a script that uses the google maps geocoder and a html form to pass the javascript variable so to perl. Now all of this seems to work fine in mozilla firefoz and internet explorer...
3
by: smartic | last post by:
I'm having problem with this code in firefox but in the Internet Explorer Browser works fine on it what is the wrong in my code ? <html> <head> <title>Like_mail</title> <script...
6
by: AAaron123 | last post by:
The code below opens the window and displays the image as a quick flash then the image goes away and is replaced by a small icon. Got any idea how to fix it? thanks
3
by: RamNivas | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> <html> <head> <title>Login</title> <style type="text/css"> h1 {...
34
by: tweetz | last post by:
function storePosition () { if(g_state.aName == 'TABLE' || g_state.aName == 'IMG') return; var sel = this.selection; if (!sel) { if(!is_browserName_IE)
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...

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.