wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Show ad for  5 sec then show content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Show ad for  5 sec then show content" Watch "Show ad for  5 sec then show content" New topic
Author

Show ad for 5 sec then show content

Alexander Petru
Greenhorn

Joined: Aug 27, 2008
Posts: 2
Okay first of all i want to tell you that i am a real noob at javascript and i have bad english too so, sorry!.
I want to make with javascript a div with an ad that will show for 5 seconds and then to be replaced (actually hide the ad and show de content) by the content.
I tried to do something on my own but i haven`t been successful here is the code:

Please don`t laugh . I am opened to suggestions if anyone can tell me an other way to do this.Thank you in advance.
[ August 27, 2008: Message edited by: Bear Bibeault ]

jocuri cu masini - jocuri barbie
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61106
    
  66

Do you really code without indentation?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61106
    
  66

without looking at your code (too hard without indentation), here's how I would probably go about it:Note that the script is kept to a minimum by using CSS to control the styling.
Alexander Petru
Greenhorn

Joined: Aug 27, 2008
Posts: 2
Sorry about my code .
And thanks Bear Bibeault I will try your code asap.
I still have lots to learn I hope this forum will help me
[ August 28, 2008: Message edited by: Alexander Petru ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Show ad for 5 sec then show content