•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 392,047 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,314 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 321 | Replies: 1
![]() |
•
•
Join Date: Jul 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Javascript code:
.......................... Open and close divs>>>>
<a href="javascript:showVideo();">Watch the Video</a>
<p id="closebutton"><a href="javascript:hideVideo();">Close Window</a></p>
javascript Syntax (Toggle Plain Text)
function showVideo(){ document.getElementById("video_popup").style.visibility="visible"; obj = document.getElementById("video_popup"); if (obj.style.display == "none") { obj.style.display = ""; } } function hideVideo(){ document.getElementById("video_popup").style.visibility="hidden"; obj = document.getElementById("video_popup"); if (obj.style.display == ""){ obj.style.display = "none"; } }
<a href="javascript:showVideo();">Watch the Video</a>
<p id="closebutton"><a href="javascript:hideVideo();">Close Window</a></p>
Last edited by Narue : 29 Days Ago at 3:31 pm. Reason: Added code tags
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
advertising apple audio bluray business canoeing development digital downloads dvd files fishing flash flv format gadget games gaming google handheld hardware hd hub hunting malware marketing media merger movie news nintendo online playstation progressive promos pvr racing search skype sony stocks streaming travel tv versus video video game video games web youtube
- Previous Thread: problem in saving unicode using ajax
- Next Thread: DOM Question



Linear Mode