YouTube na vasem Web Sajtu
Code
<iframe width="100" height="100" src="http://www.youtube.com/embed/x-40jgwazk0?rel=1&autoplay=1&version=3&autohide=1&theme=dark&wmode=transparent" frameborder="0"></iframe>
Welcome poruka
Code
<SCRIPT language="JavaScript" type="text/javascript">
var message = "Any message you want here!";
var col = new Array('#ff0000','#00aa00','#0000ff');
var xyz = 26; //max grow size.
var spd = 30; //setTimeout speed.
var msg = message.split(" ");
var timer = null;
var clrPos = 0;
var msgPos = 0;
var jog = 1;
var currentStep = 10;
var step = 8;
var h,w,y,x,r,xy;
var d = document;
var pix = "px";
var domWw = (typeof window.innerWidth == "number");
var domSy = (typeof window.pageYOffset == "number");
var running = true;
var box,txt;
var ovrflw = (d.documentElement.style &&
typeof d.documentElement.style.MozOpacity == "string")
?"-moz-scrollbars-none":"hidden";
var idx = d.getElementsByTagName('div').length;
d.write("<div id='_box"+idx+"' style='position:absolute;top:0px;left:0px;"
+"height:10px;width:10px;text-align:center;overflow:"+ovrflw+"'>"
+"<div id='_txt"+idx+"' style='position:absolute;top:0px;left:0px;width:1px;"
+"height:1px;font-family:arial,sans-serif;font-size:1px'>.<\/div><\/div>");
if (domWw) r = window;
else
{
if (d.documentElement &&
typeof d.documentElement.clientWidth == "number" &&
d.documentElement.clientWidth != 0)
r = d.documentElement;
else
{
if (d.body && typeof d.body.clientWidth == "number")
r = d.body;
}
}
function winsize()
{
var oh,sy,ow,sx,rh,rw;
if (domWw)
{
if (d.documentElement && d.defaultView &&
typeof d.defaultView.scrollMaxY == "number")
{
oh = d.documentElement.offsetHeight;
sy = d.defaultView.scrollMaxY;
ow = d.documentElement.offsetWidth;
sx = d.defaultView.scrollMaxX;
rh = oh-sy;
rw = ow-sx;
}
else
{
rh = r.innerHeight;
rw = r.innerWidth;
}
h = rh;
w = rw;
}
else
{
h = r.clientHeight;
w = r.clientWidth;
}
y = Math.floor(h/2);
x = Math.floor(w/2);
xy = (w >= h)?w:h;
}
function scrl(yx)
{
var sy,sx;
if (domSy)
{
sy = r.pageYOffset;
sx = r.pageXOffset;
}
else
{
sy = r.scrollTop;
sx = r.scrollLeft;
}
return (yx == 0)?sy:sx;
}
function dsply()
{
step += 15;
currentStep += step;
txt.top = y + Math.floor(-currentStep/16) + pix;
txt.left = x + Math.floor(-currentStep/2) + pix;
txt.width = currentStep + pix;
txt.fontSize = Math.floor(currentStep/8) + pix;
txt.color = col[clrPos];
d.getElementById("_txt"+idx).firstChild.data = msg[msgPos];
if (currentStep > xy * xyz)
{
currentStep = 10;
step = 8;
msgPos += jog;
clrPos += jog;
}
if (clrPos >= col.length)
{
clrPos = 0;
}
timer = setTimeout(dsply,spd);
if (msgPos >= msg.length)
{
running = false;
box.width = 1 + pix;
box.height = 1 + pix;
box.visibility = "hidden";
txt.width = 1 + pix;
txt.height = 1 + pix;
txt.visibility = "hidden";
clearTimeout(timer);
}
box.top = scrl(0) + pix;
box.left = scrl(1) + pix;
}
function dims()
{
if (domWw) box.width = "100%";
else box.width = w + pix;
box.height = h + pix;
}
function init()
{
winsize();
box = document.getElementById("_box"+idx).style;
txt = document.getElementById("_txt"+idx).style;
dims();
dsply();
}
function rsz()
{
if (running)
{
winsize();
dims();
}
}
if (window.addEventListener)
{
window.addEventListener("resize",rsz,false);
window.addEventListener("load",init,false);
}
else
if (window.attachEvent)
{
window.attachEvent("onresize",rsz);
window.attachEvent("onload",init);
}
Flash Video Player
Code
<div id="FlashVideoPlayer1"></div>
<script type="text/javascript">
var flashvars = {};
var params = {};
flashvars.videoPath = "";
flashvars.imagePath = "";
flashvars.title = "";
flashvars.description = "";
flashvars.viewInfoButton = "true";
flashvars.viewFullscreenButton = "true";
flashvars.viewScaleButton = "true";
flashvars.viewVolumeControls = "true";
flashvars.viewTime = "true";
flashvars.viewBigPlayButton = "true";
flashvars.videoLoop = "false";
flashvars.videoAutoPlay = "false";
flashvars.videoBufferTime = "1";
flashvars.tlInterval = "1000";
flashvars.soundVolume = "0.80";
flashvars.fullSizeView = "2";
flashvars.spacing = "10";
flashvars.controlHeight = "25";
flashvars.volumeLengthW = "100";
flashvars.color1 = "0xAAAAAA";
flashvars.color2 = "0x000000";
flashvars.borderColor = "0x000000";
flashvars.borderAlpha = "0.5";
flashvars.timeColor1 = "0x000000";
flashvars.timeColor2 = "0x000000";
flashvars.timeAlpha1 = "1.0";
flashvars.timeAlpha2 = "1.0";
flashvars.timeTextColor1 = "0xFFFFFF";
flashvars.timeTextColor2 = "0xC0C0C0";
flashvars.scrubberHeight = "3";
flashvars.scrubberColor1 = "0xC0C0C0";
flashvars.scrubberAlpha1 = "1.0";
flashvars.scrubberColor2 = "0x0099FF";
flashvars.scrubberAlpha2 = "1.0";
flashvars.filterColor = "0x0099FF";
flashvars.filterAlpha = "0.6";
flashvars.buttonColor = "0xFFFFFF";
flashvars.titleColor = "0x47D2FF";
flashvars.descriptionColor = "0xFFFFFF";
flashvars.infoBackgroundColor = "0xAAAAAA";
flashvars.infoBackgroundAlpha = "0.50";
params.quality = "Best";
params.scale = "noscale";
params.wmode = "opaque";
params.play = "false";
params.loop = "false";
params.menu = "false";
params.allowfullscreen = "true";
params.salign = "tl";
swfobject.embedSWF("wb.videoplayer.swf", "FlashVideoPlayer1", "100", "100", "9.0.0", false, flashvars, params);
</script>
Sign Up Forma
Code
<form name="signupform" method="post" action="<?php echo basename(__FILE__); ?>" id="signupform">
<input type="hidden" name="form_name" value="signupform">
<table class="signupform_table" style="width:275px;height:202px;">
<tr>
<td class="signupform_header" colspan="2" style="height:20px;">Sign up for a new account</td>
</tr>
<tr>
<td style="height:20px">Full Name:</td>
<td style="text-align:left"><input class="signupform_text" name="fullname" type="text" id="fullname" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px">User Name:</td>
<td style="text-align:left"><input class="signupform_text" name="username" type="text" id="username" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px;">Password:</td>
<td style="text-align:left"><input class="signupform_text" name="password" type="password" id="password" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px">Confirm Password:</td>
<td style="text-align:left"><input class="signupform_text" name="confirmpassword" type="password" id="confirmpassword" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px">E-mail:</td>
<td style="text-align:left"><input class="signupform_text" name="email" type="text" id="email" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td colspan="2"><?php echo $error_message; ?></td>
</tr>
<tr>
<td> </td><td style="text-align:left;vertical-align:bottom"><input class="signupform_button" type="submit" name="signup" value="Create User" id="signup" style="width:90px;height:20px;"></td>
</tr>
</table>
</form>
Login Forma
Code
<form name="loginform" method="post" action="<?php echo basename(__FILE__); ?>" id="loginform">
<input type="hidden" name="form_name" value="loginform">
<table class="loginform_table" style="width:183px;height:130px;">
<tr>
<td class="loginform_header" colspan="2" style="height:20px;">Log In</td>
</tr>
<tr>
<td style="height:20px;width:69px">User Name:</td>
<td style="text-align:left"><input class="loginform_text" name="username" type="text" id="username" value="<?php echo $username; ?>" style="width:100px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px">Password:</td>
<td style="text-align:left"><input class="loginform_text" name="password" type="password" id="password" value="<?php echo $password; ?>" style="width:100px;height:18px;"></td>
</tr>
<tr>
<td> </td><td style="text-align:left;height:20px"><input id="rememberme" type="checkbox" name="rememberme">Remember me</td>
</tr>
<tr>
<td> </td><td style="text-align:left;vertical-align:bottom"><input class="loginform_button" type="submit" name="login" value="Log In" id="login" style="width:70px;height:20px;"></td>
</tr>
</table>
</form>
Eto to bi bilo to od mene.Nadam se da ce nekome posluziti :))))