Come here for all of your Graphic-Web Design needs! Come here for all of your Graphic-Web Design needs!Come here for all of your Graphic-Web Design needs!Come here for all of your Graphic-Web Design needs!Come here for all of your Graphic-Web Design needs!Come here for all of your Graphic-Web Design needs!Come here for all of your Graphic-Web Design needs!

Go Back   LayeredGFX Forums > Graphics Tutorials > Web Design Tutorials
Register
Register Search Today's Posts Mark Forums Read

Text Link Ads

iGallery Code


Web Design Tutorials


Come here for all of your Graphic-Web Design needs!
This is a discussion on iGallery Code within the Web Design Tutorials, part of the Graphics Tutorials category; This will be the code for the iGallery, the XHTML, CSS Valid with Javascript Gallery - Very Detailed. Full code will be shown here. Live Preview ...

 
LinkBack Thread Tools
  #1 (permalink)  
Old 05-27-2007, 01:50 PM
Onlooker
 
iGallery Code

This will be the code for the iGallery, the XHTML, CSS Valid with Javascript Gallery - Very Detailed. Full code will be shown here.

Live Preview

index.html
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>XHTML & CSS Gallery</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="swapimage.js" type="text/javascript"></script>
</head>
<body>
<div id="container">
    <div id="heading">iGallery</div>
    <div id="main">
        <div id="left">
            <img id="largeimg" src="works/whisper.jpg" alt="Whisper" width="340"/>
            <div id="title">Whisper</div>
            <div id="description">Made for magicka-studio.com Whisper event.</div>
        </div>
        <div id="right">
            <a href="works/whisper.jpg" onclick="javascript:swapImage('whisper.jpg','Whisper','Made for magicka-studio.com Whisper event.'); return false;"><img src="previews/whisper.jpg" alt="Click for a larger view." /></a>
            <a href="works/boom.jpg" onclick="javascript:swapImage('boom.jpg','Boom','Made using a new 3D Application. Didnt turn out too bad but it was hard to use.'); return false;"><img src="previews/boom.jpg" alt="Click for a larger view" /></a>
            <a href="works/befree.jpg" onclick="javascript:swapImage('befree.jpg','Be Free','Photomanipulation, first try in this sort of style.'); return false;"><img src="previews/befree.jpg" alt="Click for a larger view" /></a>
            <a href="works/entity.jpg" onclick="javascript:swapImage('entity.jpg','Entity','I always said this was Old Skool turned Modern. Its an old skool render, you hardly see those any more.'); return false;"><img src="previews/entity.jpg" alt="Click for a larger view" /></a>
            <a href="works/double.jpg" onclick="javascript:swapImage('double.jpg','Double Vision','This a very large piece, it does actually have two photo manipulations in one since it was a collaboration.'); return false;"><img src="previews/double.jpg" alt="Click for a larger view" /></a>
            <a href="works/interior.jpg" onclick="javascript:swapImage('interior.jpg','Interior','About a 98% Cinema4D Piece of work.'); return false;"><img src="previews/interior.jpg" alt="Click for a larger view" /></a>
        </div>
        <div id="clear"><!-- --></div>
    </div>
    <div id="copyright">This design is created by David Ambler for the XHTML and CSS Gallery layout.</div>
</div>
</body>
</html>
Style.css
Code:
***
margin: 0;
padding: 0;
}
body{
background-color: #EEEEEE;
color: #00314A;
font-family: Tahoma, Arial, Verdana, sans-serif;
font-size: 11px;
}
#container{
width: 700px;
background-color: #F5F5F5;
color: #00314A;
margin: 0 auto;
border: 2px solid #ffffff;
border-top: 0;
padding: 0 5px;
}
#heading{
font-size: 23px;
font-weight: bold;
}
#main{
width: 100%;
margin-top: 5px;
}
#left{
display: inline;
float: left;
width: 340px;
}
#right{
display: inline;
float: right;
width: 340px;
}
#clear{
clear: both;
}
#copyright{
width: 300px;
margin: 5px auto;
font-size: 9px;
border-top: 1px dashed #8D8D8D;
text-align: center;
}
#title{
font-weight: bold;
margin-top: 5px;
}
#description{
width: 100%;
border-top: 1px dashed #8D8D8D;
}
#right img{
border: 2px solid #8D8D8D;
}
#right img:hover{
border: 2px solid #FFFFFF;
}
swapImage.js
Code:
function swapImage(image,title,description) **
    var thetitle = document.getElementById("title");
    var thedescription = document.getElementById("description");
    thetitle.firstChild.nodeValue = title;
    thedescription.firstChild.nodeValue = description;
 
    document.images.largeimg.src = "works/" + image;
    document.images.largeimg.alt = title;
}
  #2 (permalink)  
Old 05-27-2007, 05:14 PM
Jesus is my hero
 
Re: iGallery Code

nice addition silver.
  #3 (permalink)  
Old 07-23-2007, 02:55 PM
Newcomer
 
Re: iGallery Code

Looks nice but I would add an innerHTML effect on the javascript and show a loading image.

And maybe make it fade.
  #4 (permalink)  
Old 07-23-2007, 03:00 PM
ICanHasLayeredGFX?
 
Re: iGallery Code

Dont bump old posts please
  #5 (permalink)  
Old 07-23-2007, 11:37 PM
Newcomer
 
Re: iGallery Code

I wouldn't consider this old because it was still on the first page of results...
  #6 (permalink)  
Old 07-23-2007, 11:40 PM
CYLON!
Photobucket
 
Re: iGallery Code

lolz, it's a tut. Tutz you can bump, lolz
  #7 (permalink)  
Old 07-25-2007, 12:12 PM
Newcomer
 
Re: iGallery Code

Quote:
Originally Posted by GambleR View Post
lolz, it's a tut. Tutz you can bump, lolz
THANK YOU!

LMFAO! (don't be mean =P)
--GambleR
  #8 (permalink)  
Old 07-26-2007, 02:23 PM
Onlooker
 
Re: iGallery Code

Quote:
Looks nice but I would add an innerHTML effect on the javascript and show a loading image.

And maybe make it fade.
Or not, I can't give away everything :p
  #9 (permalink)  
Old 07-27-2007, 04:44 PM
Newcomer
 
Re: iGallery Code

Quote:
Originally Posted by .Silver View Post
Or not, I can't give away everything :p
What do you think I can't do it?

lol...
  #10 (permalink)  
Old 07-29-2007, 11:53 PM
Onlooker
 
Re: iGallery Code

Quote:
Originally Posted by Nerve View Post
What do you think I can't do it?

lol...
Err... did I even say that?


Thread Tools
Display Modes




All times are GMT. The time now is 12:01 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
Template-Modifikationen durch TMS
vBCredits v1.3 ©2007 by Darkwaltz4