Home
Forum
The Internet
Graphics and Multimedia
Special Effects To Your Web Page (Must See!!!)
Site Map
Main Menu
Home
Shop
News
Domains
Forum
Web Hosting
Online-Shop
Joomla Templates (3)
Domain Names (3)
Web Templates (1)
List All Products
Product Search
Advanced Search
Download Area
Login Form
Welcome,
Guest
. Please
login
or
register
.
November 21, 2008, 01:25:59 AM
Username:
Password:
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forgot your password?
Links
Special Effects To Your Web Page (Must See!!!)
My Community
November 21, 2008, 01:25:59 AM
Top 10 Web Hosting
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: SMF - Just Installed!
Home
Help
Search
Shop
Login
Register
My Community
>
The Internet
>
Graphics and Multimedia
>
Special Effects To Your Web Page (Must See!!!)
Pages: [
1
]
« previous
next »
Print
Author
Topic: Special Effects To Your Web Page (Must See!!!) (Read 13312 times)
rocky_rules
Newbie
Posts: 6
10.00 credits
View Inventory
Send Money to rocky_rules
Special Effects To Your Web Page (Must See!!!)
«
on:
December 21, 2006, 12:41:48 AM »
Decorate your webpage with this great animated document effect! Watch as snow gently trickles down the page, then disappear. The image used is changeable, so snow definitely isn't the only effect this script can render...
Step 1: Save and upload to your site one of the following two images (depending on the effect you want), by right clicking the image, and choosing "save as":
Step 2: Having done that, simply add the below chunk of code to the <BODY> section of your page:
Code:
<script type="text/javascript">
//Configure below to change URL path to the snow image
var snowsrc="snow.gif"
// Configure below to change number of snow to render
var no = 10;
// Configure whether snow should disappear after x seconds (0=never):
var hidesnowtime = 0;
// Configure how much snow should drop down before fading ("windowheight" or "pageheight")
var snowdistance = "pageheight";
///////////Stop Config//////////////////////////////////
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;
if (ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = iecompattest().clientWidth;
doc_height = iecompattest().clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (ie4up||ns6up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
}
}
}
function snowIE_NS6() { // IE and NS6 main animation function
doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
}
dx[i] += stx[i];
document.getElementById("dot"+i).style.top=yp[i]+"px";
document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px";
}
snowtimer=setTimeout("snowIE_NS6()", 10);
}
function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}
if (ie4up||ns6up){
snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}
</script>
Be sure variable "snowsrc" in the above code correctly references the full URL path to the image used. Enjoy!
Logged
SEO Articles
My Community
Special Effects To Your Web Page (Must See!!!)
«
on:
December 21, 2006, 12:41:48 AM »
Logged
rocky_rules
Newbie
Posts: 6
10.00 credits
View Inventory
Send Money to rocky_rules
Re: Special Effects To Your Web Page (Must See!!!)
«
Reply #1 on:
December 21, 2006, 12:54:43 AM »
Bouncing Balls Effects
Description: This script adds any number of images to your document that move around, bouncing back and forth off the edges of the browser window. As mentioned, multiple images supported!
Step 1: Insert the below code into the HEAD section of your page:
Code:
<script language="JavaScript" src="dynlib.js"></script>
<script language="JavaScript" src="bouncingimages.js"></script>
As you can see, the code accesses two .js files. Download them: dynlib.js and bouncingimages.js (I Have Attached Them In This Post)
Step 2: Inside the <BODY> tag, add the following onLoad event handler:
Code:
<body onLoad="javascript:loadBouncingImages();">
Step 3: Download the following image file and upload it into your webpage directory (either by clicking it, or clicking it with the shift key depressed for NS users): Or, ignore this step if you wish to use your own image.
Logged
SEO Articles
My Community
Re: Special Effects To Your Web Page (Must See!!!)
«
Reply #1 on:
December 21, 2006, 12:54:43 AM »
Logged
rocky_rules
Newbie
Posts: 6
10.00 credits
View Inventory
Send Money to rocky_rules
Left-Right Stripy Curtain Script
«
Reply #2 on:
December 21, 2006, 01:02:32 AM »
Description: A script that opens up a blue "curtain" (sideways) as the surfer enters the page.
Step 1: Insert the following into the <head> section of your page. You can change the color of the strips from blue to another by changing all three instances of the word "blue" to another color name:
Code:
<style>
<!--
.intro{
position:absolute;
left:0;
top:0;
layer-background-color:blue;
background-color:blue;
border:0.1px solid blue;
z-index:10;
}
-->
</style>
Step 2: Finally, insert the below right after the <body> tags, before anything else. You can adjust the speed in which the curtain "draws' by changing "speed=20" in the second line to another number (greater is faster):
Code:
<div id="i1" class="intro"></div><div id="i2" class="intro"></div><div id="i3"
class="intro"></div><div id="i4" class="intro"></div><div id="i5" class="intro"></div><div
id="i6" class="intro"></div><div id="i7" class="intro"></div><div id="i8" class="intro"></div>
<script language="JavaScript1.2">
var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
var speed=20
var temp=new Array()
var temp2=new Array()
if (ns4){
for (i=1;i<=8;i++){
temp[i]=eval("document.i"+i+".clip")
temp2[i]=eval("document.i"+i)
temp[i].width=window.innerWidth
temp[i].height=window.innerHeight/8
temp2[i].top=(i-1)*temp[i].height
}
}
else if (ie4||ns6){
var clipright=ns6?window.innerWidth:document.body.clientWidth
clipleft=0
for (i=1;i<=8;i++){
temp[i]=ns6?document.getElementById("i"+i).style:eval("document.all.i"+i+".style")
temp[i].width=ns6?window.innerWidth-15:document.body.clientWidth
temp[i].height=ns6?window.innerHeight/8:document.body.offsetHeight/8
temp[i].top=(i-1)*parseInt(temp[i].height)
}
}
function openit(){
window.scrollTo(0,0)
if (ns4){
for (i=1;i<=8;i=i+2)
temp[i].right-=speed
for (i=2;i<=8;i=i+2)
temp[i].left+=speed
if (temp[2].left>window.innerWidth)
clearInterval(stopit)
}
else if (ie4||ns6){
clipright-=speed
for (i=1;i<=8;i=i+2){
temp[i].clip="rect(0 "+clipright+" auto 0)"
}
clipleft+=speed
for (i=2;i<=8;i=i+2){
temp[i].clip="rect(0 auto auto "+clipleft+")"
}
if (clipright<=0){
if (ns6){
for (i=1;i<=8;i++)
temp[i].display="none"
}
clearInterval(stopit)
}
}
}
function gogo(){
stopit=setInterval("openit()",100)
}
gogo()
</script>
Logged
SEO Articles
rocky_rules
Newbie
Posts: 6
10.00 credits
View Inventory
Send Money to rocky_rules
Splash Screen effect
«
Reply #3 on:
December 21, 2006, 01:10:26 AM »
Description: Yes, you may have seen splash screen effects before, but never one constructed using a single page only...until now, that is. One great feature of DHTML is its ability to render new text on a page without having to reload or go to a whole new page altogether. With that in mind, this DHTML script allows you to set up a splash screen effect through only one page, regardless of the number of messages you wish to have "splashed." The messages are automatically centered on the page by the script. Once the effect is completed, the script then navigates to the URL of your choice. Definitely a useful- and now equally convenient to setup- creation!
Note that when browsers other than IE 4+/ NS 4+ view the splash page, they will be directly taken to the destination URL (downgrades gracefully).
Simply copy the below code, and save it as a separate html document. This is the splash page.
Code:
<html>
<head>
<title>Intro Screen...</title>
</head>
<body bgcolor="#000000" text="#FFFFFF">
<div id="splashcontainer" style="position:absolute;width:350px;"></div>
<layer id="splashcontainerns" width=450></layer>
<script>
//Specify the paths of the images to be used in the splash screen, if any.
//If none, empty out array (ie: preloadimages=new Array())
var preloadimages=new Array("http://abstract.simplenet.com/point.gif","http://abstract.simplenet.com/point2.gif")
//configure delay in miliseconds between each message (default: 2 seconds)
var intervals=2000
//configure destination URL
var targetdestination="http://Link To The Page Where You Want To Redirect"
//configure messages to be displayed
//If message contains apostrophe('), backslash them (ie: "I\'m fine")
var splashmessage=new Array()
var openingtags='<font face="Arial" size="4">'
splashmessage[0]='<img src="http://abstract.simplenet.com/point.gif"> Welcome to Cyber Zone <img src="http://abstract.simplenet.com/point2.gif">'
splashmessage[1]='The premier place on the net for free DHTML scripts'
splashmessage[2]='All scripts on this site take advantage of the latest in JavaScript/ DHTML technology'
splashmessage[3]='With emphasis on practicality and backwards compatibility'
splashmessage[4]='To bring true power and interactivity to your site.'
splashmessage[5]='Please stand by...'
var closingtags='</font>'
//Do not edit below this line (besides HTML code at the very bottom)
var i=0
var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
var theimages=new Array()
//preload images
if (document.images){
for (p=0;p<preloadimages.length;p++){
theimages[p]=new Image()
theimages[p].src=preloadimages[p]
}
}
function displaysplash(){
if (i<splashmessage.length){
sc_cross.style.visibility="hidden"
sc_cross.innerHTML='<b><center>'+openingtags+splashmessage[i]+closingtags+'</center></b>'
sc_cross.style.left=ns6?parseInt(window.pageXOffset)+parseInt(window.innerWidth)/2-parseInt(sc_cross.style.width)/2 : document.body.scrollLeft+document.body.clientWidth/2-parseInt(sc_cross.style.width)/2
sc_cross.style.top=ns6?parseInt(window.pageYOffset)+parseInt(window.innerHeight)/2-sc_cross.offsetHeight/2 : document.body.scrollTop+document.body.clientHeight/2-sc_cross.offsetHeight/2
sc_cross.style.visibility="visible"
i++
}
else{
window.location=targetdestination
return
}
setTimeout("displaysplash()",intervals)
}
function displaysplash_ns(){
if (i<splashmessage.length){
sc_ns.visibility="hide"
sc_ns.document.write('<b>'+openingtags+splashmessage[i]+closingtags+'</b>')
sc_ns.document.close()
sc_ns.left=pageXOffset+window.innerWidth/2-sc_ns.document.width/2
sc_ns.top=pageYOffset+window.innerHeight/2-sc_ns.document.height/2
sc_ns.visibility="show"
i++
}
else{
window.location=targetdestination
return
}
setTimeout("displaysplash_ns()",intervals)
}
function positionsplashcontainer(){
if (ie4||ns6){
sc_cross=ns6?document.getElementById("splashcontainer"):document.all.splashcontainer
displaysplash()
}
else if (ns4){
sc_ns=document.splashcontainerns
sc_ns.visibility="show"
displaysplash_ns()
}
else
window.location=targetdestination
}
window.onload=positionsplashcontainer
</script>
<!--Set href in below link to the URL of the target destination-->
<div align="right">
<table border="0" width="200" height="100%" cellspacing="0" cellpadding="0">
<td width="100%" valign="bottom" align="right">
[ <a href="http://Link To The Page Where You Want To Redirect"><font color="#FFFFFF">Skip Intro</font></a> ]
</td>
</table>
</div>
</body>
</html>
Be sure to configure the variables as directed by the documentation inside...
Logged
SEO Articles
rocky_rules
Newbie
Posts: 6
10.00 credits
View Inventory
Send Money to rocky_rules
Tabbed Document Viewer
«
Reply #4 on:
December 21, 2006, 01:16:28 AM »
Description: Using a tabbed interface, this DHTML script lets you display external web pages inline on your page, with the help of the IFRAME tag. We threw in a feature that allows the user to also load the webpage in the entire browser window when desired. This script works in IE5+ and NS6+, and degrades well with the rest (as tabs are simply regular links). Cool!
Step 1: Add the below CSS and DHTML script to the <HEAD> section of your page:
Code:
<style type="text/css">
#tablist{
padding: 3px 0;
margin-left: 0;
margin-bottom: 0;
margin-top: 0.1em;
font: bold 12px Verdana;
}
#tablist li{
list-style: none;
display: inline;
margin: 0;
}
#tablist li a{
text-decoration: none;
padding: 3px 0.5em;
margin-left: 3px;
border: 1px solid #778;
border-bottom: none;
background: white;
}
#tablist li a:link, #tablist li a:visited{
color: navy;
}
#tablist li a:hover{
color: #000000;
background: #C1C1FF;
border-color: #227;
}
#tablist li a.current{
background: lightyellow;
}
</style>
<script type="text/javascript">
var selectedtablink=""
var tcischecked=false
function handlelink(aobject){
selectedtablink=aobject.href
tcischecked=(document.tabcontrol && document.tabcontrol.tabcheck.checked)? true : false
if (document.getElementById && !tcischecked){
var tabobj=document.getElementById("tablist")
var tabobjlinks=tabobj.getElementsByTagName("A")
for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].className=""
aobject.className="current"
document.getElementById("tabiframe").src=selectedtablink
return false
}
else
return true
}
function handleview(){
tcischecked=document.tabcontrol.tabcheck.checked
if (document.getElementById && tcischecked){
if (selectedtablink!="")
window.location=selectedtablink
}
}
</script>
To customize the look of the tabs (ie: color), edit the CSS. There is no need to modify the script at all.
Step 2: Add the below code to the <BODY> section of your page:
Code:
<ul id="tablist">
<li><a class="current" href="http://www.google.com" onClick="return handlelink(this)">Google</a></li>
<li><a href="http://www.yahoo.com" onClick="return handlelink(this)">Yahoo</a></li>
<li><a href="http://www.msn.com" onClick="return handlelink(this)">MSN</a></li>
<li><a href="http://www.news.com" onClick="return handlelink(this)">News.com</a></li>
<li><a href="http://www.dynamicdrive.com" onClick="return handlelink(this)">Dynamic Drive</a></li>
</ul>
<iframe id="tabiframe" src="http://www.google.com" width="98%" height="350px"></iframe>
<form name="tabcontrol" style="margin-top:0">
<input name="tabcheck" type="checkbox" onClick="handleview()"> Open tab links in browser window instead.
</form>
The above HTML code renders the tab links and IFRAME tag used to contain the external documents. Change the URLs to your own.
Now, if you have lots of tab links, you can get them to appear on separate lines, by adding a divider:
Code:
<ul id="tablist">
<li><a class="current" href="#">Google</a></li>
<li><a href="#">Yahoo</a></li>
<li><a href="#">MSN</a></li>
<div style="margin-bottom: 8px"></div>
<li><a href="#">News.com</a></li>
<li><a href="#">Dynamic Drive</a></li>
</ul>
Logged
SEO Articles
rocky_rules
Newbie
Posts: 6
10.00 credits
View Inventory
Send Money to rocky_rules
Re: Special Effects To Your Web Page (Must See!!!)
«
Reply #5 on:
December 21, 2006, 03:41:07 PM »
Hey Buddies Please Post Your Comments!!!
Logged
SEO Articles
Seraphim
Newbie
Posts: 2
2.00 credits
View Inventory
Send Money to Seraphim
Re: Special Effects To Your Web Page (Must See!!!)
«
Reply #6 on:
January 20, 2007, 09:27:21 PM »
Wow, good job. But how come its as if I have seen these codes before only they were edited? Well if it is original then I congratulate you.
Logged
SEO Articles
Shadow1243
Sr. Member
Posts: 439
479.00 credits
View Inventory
Send Money to Shadow1243
Re: Special Effects To Your Web Page (Must See!!!)
«
Reply #7 on:
July 09, 2007, 11:05:45 PM »
thanks for sharing,i will try them
Logged
SEO Articles
prorichard
Full Member
Posts: 103
120.00 credits
View Inventory
Send Money to prorichard
Re: Special Effects To Your Web Page (Must See!!!)
«
Reply #8 on:
August 03, 2007, 11:55:34 PM »
whether its original or not, found it usefuf. lol begging for comments. peace!
Logged
SEO Articles
Ian Dennis
Jr. Member
Posts: 98
110.00 credits
View Inventory
Send Money to Ian Dennis
Re: Special Effects To Your Web Page (Must See!!!)
«
Reply #9 on:
August 16, 2007, 11:18:20 AM »
they are terrible! only good if you want a kids website. eek, an opinion.
Logged
SEO Articles
Ian Dennis
Jr. Member
Posts: 98
110.00 credits
View Inventory
Send Money to Ian Dennis
Re: Special Effects To Your Web Page (Must See!!!)
«
Reply #10 on:
August 16, 2007, 11:20:02 AM »
though some more codes would be great for other things.
Logged
SEO Articles
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
The Webb
-----------------------------
=> Webb360.com Announcements
===> Website Suggestions
=> Webb360.com Product Support
===> Presale Questions
=> Hosting and Domain Requests
===> Denied Requests
-----------------------------
The Internet
-----------------------------
=> Web Design Discussion
===> Website Reviews
===> Web Designs For Sale
=> Domain Names
===> Domain Appraisals
===> Domains for Sale
=> Graphics and Multimedia
=> Programming
=> Computers
-----------------------------
The World
-----------------------------
=> News and World Discussion
=> Debate Forum
=> Sports
=> Forum Games
=> Entertainment
===> Video Games
=> Lounge
===> Member Introductions
Loading...