hey again! thanks for the people who left comments. here are some new codes!
code for pop up at the beginning(change the words):
<!-- Popup Alert on Entry : Blogring.net --> <script language="JavaScript"> function confirm() { if (!confirm("TEXT")) history.go(-1); return " "; } document.writeln(confirm()) //brnet document.pop </script> <!-- End Script : Provided by Blogring.net -->
code for pop up at the end(again..change the words):
<body onUnload="alert('TEXT');">
code for spaced out hover over:
<!-- begin code provided by createblog.com --> <style type="text/css"> { a:hover{letter-spacing:5px } </style> <!-- end code provided by createblog.com -->
upside down hover over:
<!-- begin code provided by createblog.com --> <style type="text/css"> A:hover { filter: flipv } </style> <!-- end code provided by createblog.com -->
code for no right click with pop up:
<!--
begin code provided by createblog.com --><script
language="JavaScript">var message="WRITE YOUR MESSAGE HERE";function
click(e) {if (document.all) {if (event.button==2||event.button==3)
{alert(message);return false;}}if (document.layers) {if (e.which == 3)
{alert(message);return false;}}}if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);}document.onmousedown=click;//
--></SCRIPT> <!-- end code provided by createblog.com -->
code for rainbow hover over:
<!-- begin code provided by createblog.com -->
<script language=javascript>
var rate = 100; // Increase amount(The degree of the transmutation)
var obj; // The object which event occured in
var act = 0; // Flag during the action
var elmH = 0; // Hue
var elmS = 128; // Saturation
var elmV = 255; // Value
var clrOrg; // A color before the change
var TimerID; // Timer ID
si=setInterval;
if (navigator.appName.indexOf("Microsoft",0) != -1 && parseInt(navigator.appVersion) >= 4) {
Browser = true;
} else {
Browser = false;
}
if (Browser) {
document.onmouseover = doRainbowAnchor;
document.onmouseout = stopRainbowAnchor;
}
function doRainbow()
{
if (Browser && act != 1) {
act = 1;
obj = event.srcElement;
clrOrg = obj.style.color;
TimerID = si("ChangeColor()",100);
}
}
function stopRainbow()
{
if (Browser && act != 0) {
obj.style.color = clrOrg;
clearInterval(TimerID);
act = 0;
}
}
function doRainbowAnchor()
{
if (Browser && act != 1) {
obj = event.srcElement;
while (obj.tagName != 'A' && obj.tagName != 'BODY') {
obj = obj.parentElement;
if (obj.tagName == 'A' || obj.tagName == 'BODY')
break;
}
if (obj.tagName == 'A' && obj.href != '') {
act = 1;
clrOrg = obj.style.color;
TimerID = si("ChangeColor()",100);
}
}
}
//document.write.blogring
function stopRainbowAnchor()
{
if (Browser && act != 0) {
if (obj.tagName == 'A') {
obj.style.color = clrOrg;
clearInterval(TimerID);
act = 0;
}
}
}
function ChangeColor()
{
obj.style.color = makeColor();
}
function makeColor()
{
// HSVtoRGB
if (elmS == 0) {
elmR = elmV; elmG = elmV; elmB = elmV;
}
else {
t1 = elmV;
t2 = (255 - elmS) * elmV / 255;
t3 = elmH % 60;
t3 = (t1 - t2) * t3 / 60;
if (elmH < 60) {
elmR = t1; elmB = t2; elmG = t2 + t3;
}
else if (elmH < 120) {
elmG = t1; elmB = t2; elmR = t1 - t3;
}
else if (elmH < 180) {
elmG = t1; elmR = t2; elmB = t2 + t3;
}
else if (elmH < 240) {
elmB = t1; elmR = t2; elmG = t1 - t3;
}
else if (elmH < 300) {
elmB = t1; elmG = t2; elmR = t2 + t3;
}
else if (elmH < 360) {
elmR = t1; elmG = t2; elmB = t1 - t3;
}
else {
elmR = 0; elmG = 0; elmB = 0;
}
}
//document.write.blogring
elmR = Math.floor(elmR);
elmG = Math.floor(elmG);
elmB = Math.floor(elmB);
clrRGB = '#' + elmR.toString(16) + elmG.toString(16) + elmB.toString(16);
elmH = elmH + rate;
if (elmH >= 360)
elmH = 0;
return clrRGB;
}
</script>
<!-- end code provided by createblog.com -->
code for fireworks:
<!-- begin code provided by createblog.com -->
<!-- begin code provided by createblog.com -->
<script>
// xanga fireworks - by jeff aka godofphotoshop
// happy fourth of july everyone!
// paste in website stats
var firework_text = "*"; // control fireworks shape
var firework_count = 5; // higher = more blooms at a time
var firework_size = 150; // higher = larger blooms
var firework_density1 = 25; // higher = dense fireworks
var firework_density2 = 10; // higher = dense fireworks
var firework_life = 80; // higher = longer lasting blooms
var firework_fadelife = 20; // higher = longer to fade
// do not edit below this line
var blooms = new Array();
var firework_enabled = true;
var myCanvas = document.body;
var time = 0;
var bloomid = 0;
stix = window.setTimeout;
// HSV conversion from http://www.ficml.org/jemimap/style/color/wheel.html
function hue2hex(Hdeg) {
H = Hdeg/360; // convert from degrees to 0 to 1
S = 1;
V = 1;
var_h = H*6;
var_i = Math.floor( var_h ); //Or ... var_i = floor( var_h )
var_1 = V*(1-S);
var_2 = V*(1-S*(var_h-var_i));
var_3 = V*(1-S*(1-(var_h-var_i)));
if (var_i==0) {var_r=V; var_g=var_3; var_b=var_1}
else if (var_i==1) {var_r=var_2; var_g=V; var_b=var_1}
else if (var_i==2) {var_r=var_1; var_g=V; var_b=var_3}
else if (var_i==3) {var_r=var_1; var_g=var_2; var_b=V}
else if (var_i==4) {var_r=var_3; var_g=var_1; var_b=V}
else {var_r=V; var_g=var_1; var_b=var_2}
R = Math.round(var_r*255); //RGB results = From 0 to 255
G = Math.round(var_g*255);
B = Math.round(var_b*255);
hexval = R*65536 + G*256 + B
hexstr = hexval.toString(16);
while(hexstr.length < 6) hexstr = "0" + hexstr;
return "#" + hexstr;
}
function Bloom() {
size = firework_size * (0.9 + (Math.random() * 0.1));
centerX = Math.random() * (myCanvas.clientWidth - size) + size/2;
centerY = Math.random() * (myCanvas.clientHeight - size) + myCanvas.scrollTop + size/2;
density1 = firework_density1 * (0.9 + (Math.random() * 0.1));
density2 = firework_density2 * (0.9 + (Math.random() * 0.1));
hue = 360 * Math.random();
this.bloomid = bloomid++;
this.active = true;
this.offtime = time + (firework_life * (0.9 + (Math.random() * 0.2)));
this.masterParticles = new Array();
for(var i = 0; i < density1; i++) { this.masterParticles.push(new MasterParticle(centerX, centerY, Math.random() * 6.283, size * (0.3 + Math.random() * 0.7), hue + (Math.random() * 60), density2)); }
}
function MasterParticle(x, y, direction, velocity, hue, density2) {
this.x = x;
this.y = y;
this.dx = velocity * Math.cos(direction) / density2;
this.dy = velocity * Math.sin(direction) / density2;
this.hue = hue;
this.subParticles = new Array();
this.i = 0;
this.density2 = density2;
}
function SubParticle(x, y, hue, bloomid) {
var z = document.createElement("span");
z.innerText = firework_text;
z.style.position = "\u0061bs\u006flut\u0065";
z.style.top = y;
z.style.left = x;
z.style.color = hue2hex(hue);
z.id = "span_" + bloomid.toString();
this.span = myCanvas.appendChild(z);
}
function NullBloom() {
this.active = false;
}
function Clear(bloomid) {
while(document.getElementById("span_" + bloomid.toString())) document.body.removeChild(document.getElementById("span_" + bloomid.toString()));
}
function StopFireworks() {
for(i = 0; i < firework_count; i++) { if(blooms[i].active) Clear(blooms[i].bloomid); blooms[i] = null; blooms[i] = new NullBloom(); }
firework_enabled = false;
}
for(var i = 0; i < firework_count; i++) blooms.push(new NullBloom());
function updateFireworks() {
time++;
for(var a = 0; a < firework_count; a++) {
// update fireworks colors
if(blooms[a].active) {
for(var b = 0; b < blooms[a].masterParticles.length; b++) {
bo = blooms[a].masterParticles[b];
if(bo.i++ < bo.density2) bo.subParticles.push(new SubParticle(bo.x + bo.i * bo.dx, bo.y + bo.i * bo.dy, bo.hue, blooms[a].bloomid));
if(blooms[a].offtime <= time) {
for(var c = 0; c < blooms[a].masterParticles[b].subParticles.length; c++) {
var temp = blooms[a].masterParticles[b].subParticles[c];
}
}
}
if((blooms[a].offtime + firework_fadelife) <= time) {
Clear(blooms[a].bloomid);
blooms[a] = null;
blooms[a] = new NullBloom();
}
}
else if(Math.random() < 0.05) {
blooms[a] = new Bloom();
}
}
if(firework_enabled) stix(updateFireworks, 50);
}
stix(updateFireworks, 3000);
</script>
<a href="#" onclick="StopFireworks();">stop the fireworks</a> - <a href="http://www.xanga.com/godofphotoshop">get the script</a>
<!-- end code provided by createblog.com -->
<!-- end code provided by createblog.com -->
i'll post more codes later. leave comments and requests guys!!
xoxo, emily
|