Hi Guys,
Would any of you mind taking a look at my site, it is an HTML site that I launched last week.
As you will be able to see, it is nothing too fancy, and a few of the pages are still incomplete, but I basically just wanted to get it up there, and am constantly adding to it as time goes on . . . .
umm, maybe add a preloader and some fancy roll-overs… oh wait - this isn’t a flash site?
uhh, sorry - no can do
no seriously, nice to see a html page once in a while.
looks nice, good colours, good fonts.
only thing I can see to criticize is the notice telling you that flash player is needed for parts of the site, which is in a different font than the rest. otherwise, good work
I didn’t check what part of the html rollovers were being a little delayed but here’s the code anyways. Looks long - but half of it is just code and explaining. This will produce smooth rollovers. I think I might make a tutorial on this for kirupa.com :).
Short Tutorial
Let’s say you have 2 images. These 2 images are your HOME button images. Home.jpg and .HomeRoll.jpg
Home.jpg is the initial state. And HomeRoll.jpg is the rollover state.
Add this code in your header:
<script type="text/javascript">
myImages = new Image;
myImages = "Home.jpg", "HomeRoll.jpg";
function myRoll(n) {
if ( n == 0 ) {
homeBTN.src = "Home.jpg";
}
if ( n == 1 ) {
homeBTN.src = "HomeRoll.jpg";
}
}
</script>
In your body tags, make sure you have your href to wherever and make sure the img tag for home is this:
Now test it. This is pretty self explanatory. The code uses functions to load it. homeBTN is the id for the image. And when it is rolled over, homeBTN’s src image will change. You can now use this for other buttons :). Just keep adding the image names to the myImages part ;).
I forgot the exact code that actually preloads it. I think this might work but I’m trying to think of the preload code. If I can get it from the book I had I’ll post it.
Actually - I found out the real code - just remembered it. I made a tutorial for kirupa.com on how to preload images and create rollovers with them - it should be up soon. He said it might be up today if he gets the chance.
I clearly explained everything so just wait until it comes up on the front page and you can read it. The code is really simple. About 6 lines of javascript to preload and 5 lines to make a rollover function.
I provided all of them and explained what each line does ;).