Chirokipau
Global Mod
> : LOL?XD
Posts : 1836
Age : 31
Location : Cavite.General trias.
Mood : Happy
Country :
Reg-Date : 2008-09-04
Forum Warning :
Contribution :
|
Subject: Dragable & autoplay video Thu Oct 09, 2008 3:05 pm |
|
|
this code is originaly from cip6192~ full credits goes to him. and also to sir unmaskedluke on his thread, he explain how to hav any type of widget u want to be dragable. and here i show u to hav a dragable & autoplay video! lolScreenie:<image> Live Preview -- ok 1stly. go to youtube. find the video u want.<image> copy the embed code, open notepad and paste it there<image> get rid of everything before the first "embed" and after the second "embed" til it looks like this below. - Code:
-
<embed src="http://www.youtube.com/v/cC1TTz2bMmM&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed> after that add to the url "&autoplay=1" like below : - Code:
-
<embed src="http://www.youtube.com/v/cC1TTz2bMmM&hl=en&fs=1&autoplay=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed> stilll in the notepad, replace all the double quote to single quote til it look like this : Use this method - <image> - Code:
-
<embed src='http://www.youtube.com/v/cC1TTz2bMmM&hl=en&fs=1[color=red]&autoplay=1[/color]' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='344'></embed> -- then paste the embed code in the red part below : - Quote :
- var div = document.createElement("div");
div.innerHTML = "<div id=\"dhtmlwindowholder\"><span style=\"display:none;\">.</span></div>"; document.getElementsByTagName("body")[0].appendChild(div);
var cipinlinewin=dhtmlwindow.open("cipinlinebox", "inline", "paste the embed code here", "Title here", "width=440px,height=355px,left=290px,top=240px,resize=1,scrolling=0", "recal")
googlewin.onclose=function(){ return window.confirm("Are you sure that you want to close this box? it will not appear again until you refresh the page.") } edit the "Title Here" with the title of your video. you can customize this part too... width=440px,height=355px,left=290px,top=240px,resize=1,scrolling=0 ...with your own, the width the height, the position to left and top, resizable 1 is on 0 is off, scrollable 1 is on 0 is off.-- when your done this will be the final code: - Quote :
- function onProfileLoad() {
//onload handler
//all the codes inside your onload handler here
var div = document.createElement("div"); div.innerHTML = "<div id=\"dhtmlwindowholder\"><span style=\"display:none;\">.</span></div>"; document.getElementsByTagName("body")[0].appendChild(div);
var cipinlinewin=dhtmlwindow.open("cipinlinebox", "inline", "Html codes here", "Title here", "width=200px,height=100px,left=30px,top=360px,resize=1,scrolling=0", "recal")
var cipframewin=dhtmlwindow.open("cipframebox", "iframe", "Url of your own site", "Title here", "width=820px,height=600px,left=100px,top=540px,resize=1,scrolling=1,center=0", "recal")
googlewin.onclose=function(){ return window.confirm("Are you sure that you want to close this box? it will not appear again until you refresh the page.") }
} the red part is the codes you need to put at the bottom of the onloadhandler including the }
when u're done pasting it in your onload handler, paste this code at the very bottom of your js code.for js here!ayt! for yer css download the link..Here!ayt!for yer css and that's it! your done!
|
|
jaspermarkyo
HCG Wizard
> : I love HCG!
Posts : 54
Age : 34
Reg-Date : 2008-09-16
Forum Warning :
Contribution :
|
Subject: Re: Dragable & autoplay video Thu Oct 09, 2008 4:10 pm |
|
|
tnx for sharing dude... wahaha...
|
|
Chirokipau
Global Mod
> : LOL?XD
Posts : 1836
Age : 31
Location : Cavite.General trias.
Mood : Happy
Country :
Reg-Date : 2008-09-04
Forum Warning :
Contribution :
|
Subject: Re: Dragable & autoplay video Fri Oct 10, 2008 2:12 pm |
|
|
thanks for appreciating men.. :)
|
|
RaPalz
HCG Addict
> : IM FROM HELLESANA
Posts : 232
Age : 33
Location : SheBu
Reg-Date : 2008-09-08
Forum Warning :
Contribution :
|
Subject: Re: Dragable & autoplay video Thu Nov 06, 2008 9:45 pm |
|
|
NICE
|
|
harlequeen02
HCG Member
> : mahal kita kasi :]
Posts : 30
Age : 33
Location : s ♥ mooo ;]
Mood : Bittersweet
Country :
Reg-Date : 2008-11-01
Forum Warning :
Contribution :
|
|
zachariiss
HCG Addict
> : www.zachariissblog.co.nr
Posts : 444
Age : 28
Location : laguna
Mood : Happy
Country :
Reg-Date : 2008-10-05
Forum Warning :
Contribution :
|
Subject: Re: Dragable & autoplay video Fri Jan 23, 2009 1:57 pm |
|
|
|
|
edison4n6
Guest
> : I love HCG!
Posts : 8
Age : 35
Location : SA PUSO NYA XD
Reg-Date : 2008-10-29
Forum Warning :
Contribution :
|
Subject: Re: Dragable & autoplay video Fri Jan 23, 2009 4:13 pm |
|
|
nice one!!
|
|
Cklarck
HCG Addict
> : Forget Everything, Forgive Not
Posts : 273
Age : 35
Mood : Calm
Country :
Reg-Date : 2008-09-11
Forum Warning :
Contribution :
|
Subject: Re: Dragable & autoplay video Fri Jan 23, 2009 5:04 pm |
|
|
you can also put other videos, slides, images and etc...just be sure to change the ( ") to ( ')
|
|
bheaaa
HCG Geek
Posts : 651
Country :
Reg-Date : 2008-10-03
Forum Warning :
Contribution :
|
Subject: Re: Dragable & autoplay video Sun Jan 25, 2009 4:30 am |
|
|
|
|
ahn min hyo
HCG Elite
> : inge repu :)
Posts : 1022
Age : 33
Mood : Good
Country :
Reg-Date : 2008-12-01
Forum Warning :
Contribution :
|
Subject: Re: Dragable & autoplay video Sun Jan 25, 2009 12:04 pm |
|
|
|
|
aR.aR
HCG Master
> : vavaVooomm~:))
Posts : 5757
Age : 29
Location : Malice n` Wonderland
Mood : Blah
Country :
Reg-Date : 2008-12-16
Forum Warning :
Contribution :
|
Subject: Re: Dragable & autoplay video Sun Jan 25, 2009 7:35 pm |
|
|
woot woot tnx ( PAH POST LNG POH )_________________ <a href="http://cooltext.com"><img src="http://images.cooltext.com/443982.gif" width="443" height="111" alt="xii.4r.4r.iix" />
|
|
kryssey
HCG Addict
> : ...no shoutout...
Posts : 304
Age : 33
Location : duNNO.
Mood : Gloomy
Country :
Reg-Date : 2009-05-15
Forum Warning :
Contribution :
|
Subject: Re: Dragable & autoplay video Mon Jun 01, 2009 9:59 pm |
|
|
|
|
kryssey
HCG Addict
> : ...no shoutout...
Posts : 304
Age : 33
Location : duNNO.
Mood : Gloomy
Country :
Reg-Date : 2009-05-15
Forum Warning :
Contribution :
|
Subject: Re: Dragable & autoplay video Mon Jun 01, 2009 10:00 pm |
|
|
|
|
Sponsored content
|
Subject: Re: Dragable & autoplay video |
|
|
|
|