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

Doubke marquee div by JavaScript

I want to create a code like including two div
First div will lunch by marquee style left to right 300px when a person click on open then I want to open menus inside div with marquee style.
I want menus will appear after 5 second of first div appearance. I create the code but I cant set up the delaying of menu
I mean all contents are starting at one time
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html>
  2. <html>
  3. <head><style>body{background-color:black; color:white;}.cdv{background-color:gray; width:200px; height:40px; font-size:20px; border-bottom:1px outset red; border-bottom-right-radius:2em; padding:5px 10px 0px;}
  4. .csv{width:300px; height:30px; font-size:10px; padding:10px 0px 0px;}</style>
  5. <meta charset="ISO-8859-1">
  6. <script type="text/
  7. javascript">
  8. function expandCollapse(showHide) {
  9. var hideShowDiv =document.getElementById(showHide);
  10. var label =
  11. document.getElementById("expand");
  12. if (hideShowDiv.style.display =='none') {
  13. label.innerHTML= label.innerHTML.replace("[+]", "[-]");
  14. hideShowDiv.style.display = 'block';} else {
  15. label.innerHTML= label.innerHTML.replace("[-]", "[+]");
  16. hideShowDiv.style.display = 'none';
  17. }
  18. }
  19. </script>
  20. <title>Expand collapse
  21. sample</title>
  22. </head>
  23. <body>
  24. <div>
  25. <div style="background-color:black; width:100px; height:20px; padding:0px 0px 0px; color:aqua;" onclick="expandCollapse('showHide
  26. ');" id="expand">[+]Open Tray 
  27. </div>
  28. </div>
  29. <div id="showHide"
  30. style="display: none; height:0px;">
  31. <marquee behavior="slide" direction="right" scrollamount="5" loop="1"><div style="height:600px; border-right:3px solid red; border-top:1px solid red; border-bottom:18px inset red; width:200px; background-color:white; border-bottom-right-radiis:2em; border-top-right-radius:2em; "><marquee behavior="slide" direction="right" scrollamount="5" loop="1"><div class="cdv">Hello</div></marquee><hr color="red" align="center" width="150"><a href="onclick.html"><div class="csv"><b>Onclick</b></div></a></marquee></div>
  32. </div>
  33. </body>
  34. </html>
  35. <div style=""><b>Top content should go through into this <hr/></b></div>
  36.  
  37.  
  38. </body>
  39. </html>
  40.  
  41.  
  42. <!DOCTYPE html>
  43. <html>
  44. <body>
  45.  
  46. <p>Click "Try it". Wait 3 seconds. The page will alert "Hello".</p>
  47.  
  48. <button onclick="setTimeout(function(){alert('Hello')},3000);">
  49. Try it</button>
  50.  
  51. </body>
  52. </html>
  53.  
Jan 29 '15 #1
0 1128

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

Similar topics

3
by: Nadim Attari | last post by:
Hi, Can i dynamically change the direction (through javaScript) of a marquee ??? E.g.: === <marquee id = 'newsScroll' name = 'newsScroll' direction = 'down' scrollamount = '1' scrolldelay =...
2
by: Rebecca | last post by:
Hello everybody, Since a few years I'm fooling around a little bit trưing to make a website for my husbands' oldmobils. One of the idea's is to let a car 'drive' through the screen, make it 'drive...
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...
14
by: Mars | last post by:
I'm looking for a javascipt vertical news scroller that will scroll from the bottom of the page to the top showing many new items. Would really appreciate some help. The scroller I'm using at...
5
by: CartmanCreative | last post by:
I am totally new to Javascript, and would desperately like some help. I have downloaded a Javascript Text Scroller that uses DHTML to scroll text up and down. There are other Java scrollers that do...
8
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...
1
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"...
3
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....
4
risk32
by: risk32 | last post by:
Hi all, I have a quick question. I'm using Uncle Jim's vertical scrolling text script from http://jdstiles.com and I'm trying to modify it to suit my needs. I'm not sure if this can be done, but...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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...
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.