473,406 Members | 2,217 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,406 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 1129

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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.