0 members and 23,548 guests
No Members online

» Site Navigation
» Stats
Members: 35,442
Threads: 103,075
Posts: 826,688
Top Poster: cc.RadillacVIII (7,429)
|
-
For some reason, I just got an urge to make a tutorial.
So I did.
:lol:
The art of splash screens is very simple.
So we start out making a picture,preferably 250 x 250, if you need a simple but fast-loading image, make a smaller one, or you could as well use a small colour pallete.
Now create the passive image. Save it as *.png,*.gif or *.jpeg(I prefer one of those).
Note: The following step is not mandatory!
You now need to do a hover image that's based on the passive one.
Code:
<html>
<head>
<title>Untitled</title>
<style>
.splash {
margin-left: auto;
margin-right: auto;
text-align: center; /* center the image in some browsers */
}
</style>
<script type="text/javascript">
<!--
function newImage(arg) {
if (document.images) {
*rslt = new Image();
*rslt.src = arg;
*return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
*for (var i=0; i<changeImages.arguments.length; i+=2) {
* document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
*}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
*passive/image/path/here= newImage("passive/image/path/here");
*preloadFlag = true;
}
}
// -->
</script>
</head>
<body>
<div class="splash">
<img name="splash_screen" src="passive/image/path/here" width="300" height="300" border="0" alt="" usemap="#splash_screen_Map" /></div>
<map name="splash_screen_Map">
<area shape="rect" alt="" coords="0,0,300,300" href="home.php"
onmouseover="changeImages('splash_screen', 'hover/path/here'); return true;"
onmouseout="changeImages('splash_screen', 'passive/image/path/here'); return true;"
onmousedown="changeImages('splash_screen', 'hover/image/path/here'); return true;"
onmouseup="changeImages('splash_screen', 'hover/image/path/here'); return true;">
</map>
</body>
</html>
I think this works!
Just reply here and I'll fix the problem.
:lol:
----------
Fixed some errors.
Converted to Javascript.
Noooooo! My old signature is gone! Gone forever!!!
*sniff* 
New one!

-
Originally posted by 1337elite@8 Hours Ago
I think this works!
Just reply here and I'll fix the problem.
:lol:
----------
Fixed some errors.
Converted to Javascript.
[snapback]158881[/snapback]
Okay, it's a good tutorial and all, but dont say "I think this works" lol. Makes it seem like you're not sure of what you're doing. Instead, put an example of what that code does. (=
That way, you're sure it works the way you have it set up.
Other than that, it's good! Alot of people might like this, if they want a splash on their site
-
The effect will work, but it's iffy. I used to use the same technique for rollovers, they always had a lot of lag in IE and sometimes didn't work at all.
Resident father figure.
-
Why not just use, Flash or a plain hyperlinked image?
/lost
-
Using javascript is even less accessible. Alot of people have javascript turned off and don't even realize it.
Resident father figure.
-
-
Example: http://elite.silgrad.com <-- My geeky Morrowind site :P
Noooooo! My old signature is gone! Gone forever!!!
*sniff* 
New one!

Similar Threads
-
By DragonsRage in forum Digital Art
Replies: 2
Last Post: 08-17-2005, 03:45 PM
-
By rapidx in forum Sigs & Manips
Replies: 6
Last Post: 03-23-2005, 03:05 PM
-
By D.Sobers in forum Sigs & Manips
Replies: 4
Last Post: 02-12-2005, 09:57 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|