Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
56
rated 0 times [  62] [ 6]  / answers: 1 / hits: 16589  / 12 Years ago, wed, october 3, 2012, 12:00:00

I am completely new to javascript and using colorbox. I can get the video to load and close as I would like. However, I don't know how to change the formating of the box or how to make the background more opaque while the pop-up apears. I have the following code:



{js}

<br>
<br>
<h1>hello world! This is soooooo exciting! </h1>

<p><a href=javascript:void jQuery.colorbox({
html:'<iframe width=600 height=400 src=http://www.youtube.com/embed/eh-0knDpn5g frameborder=10 allowfullscreen></iframe>'
})> <img src=/uploads/features/featured-block-1.jpg /></a></p>


Also I have been having this weird problem where I close the pop-up, but the background still stays opaque.



If anyone could post some code examples or explain to me how/if the colorbox takes parameters, I would greatly appreciate it.


More From » html

 Answers
22

All options you can find on this page: ColorBox



Here is example:



$.colorbox({ href: 'http://www.youtube.com/embed/eh-0knDpn5g', width: '600px', height: '400px', iframe: true });

[#82768] Tuesday, October 2, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eliza

Total Points: 732
Total Questions: 96
Total Answers: 86

Location: Guam
Member since Fri, Jun 18, 2021
3 Years ago
;