GFXVoid Graphic Design Forum

Remove Text Formatting
Loading...

» Online Users: 23,548

0 members and 23,548 guests
No Members online

» Site Navigation

 > FAQ

» Stats

Members: 35,442
Threads: 103,075
Posts: 826,688
Top Poster: cc.RadillacVIII (7,429)
Welcome to our newest member, Lekelindids
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2005
    Location
    Sweden
    Posts
    345

    Angry

    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!

  2. #2
    Join Date
    Jan 2005
    Location
    La Habra, Cali
    Posts
    124

    Default

    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

  3. #3
    Join Date
    Jan 2005
    Location
    USA
    Posts
    2,155

    Default

    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.

  4. #4
    Join Date
    Feb 2005
    Location
    Fort Wayne, Indiana
    Posts
    7,057

    Default

    Why not just use, Flash or a plain hyperlinked image?


    /lost

  5. #5
    Join Date
    Jan 2005
    Location
    USA
    Posts
    2,155

    Default

    Using javascript is even less accessible. Alot of people have javascript turned off and don't even realize it.
    Resident father figure.

  6. #6
    Join Date
    Feb 2005
    Location
    Fort Wayne, Indiana
    Posts
    7,057

    Default

    Hahah xD

  7. #7
    Join Date
    May 2005
    Location
    Sweden
    Posts
    345

    Default

    Example: http://elite.silgrad.com <-- My geeky Morrowind site :P
    Noooooo! My old signature is gone! Gone forever!!!
    *sniff*
    New one!

Similar Threads

  1. Screen
    By DragonsRage in forum Digital Art
    Replies: 2
    Last Post: 08-17-2005, 03:45 PM
  2. Color Splash..!
    By rapidx in forum Sigs & Manips
    Replies: 6
    Last Post: 03-23-2005, 03:05 PM
  3. Splash Paint sig
    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
  •  
Powered by vBadvanced CMPS v4.1.1