View Full Version : new page lacks a preloader -.-
blackout000
08-12-2005, 20:01
hi there, i just wanted to tell the admins that the mouseovers at the top navigation line arent preloaded, ie they take some time to switch to the mouseover-state the first time you use them. so place <span style="{display: none;}"><img1...><img2...>...</span>somewhere in the sourcecode (well, you can use js as well, but its pretty incompatible :\ )
(since i havent been able to find any webmaster email adress on the main page, i hope its 'legal' to post that issue in here :) )
I think this thread concerns me. I thought these rollover effects are a "nice to have" feature on the new page, but it seems like preloading those images is very important for many users.
:o
Thanks for your feedback. I'll fix this one soon...
No worries ScP, if you're doing mouseover buttons I have a handy piece of Javascript you might like:
function mouseover(object) {
var newsrc = object.src;
var insertat = newsrc.lastIndexOf("/");
newsrc = newsrc.substr(0,insertat) + "/mo_" + newsrc.substr(insertat + 1, newsrc.length);
object.src = newsrc;
}// end mouseover
function mouseout(object) {
var newsrc = object.src;
var insertat = newsrc.lastIndexOf("/");
newsrc = newsrc.substr(0,insertat + 1) + newsrc.substr(insertat + 4, newsrc.length);
object.src = newsrc;
}// end mouseout
function preload(someImage) {
someButton = new Image();
someButton.src = someImage;
}// end preload
Pretty straightforward, normal buttons are named "image.ext" and the mouseover buttons are named "mo_image.ext".
If you want to add a mouseover effect to an image just insert the following piece into the img tag:
onMouseOver="mouseover(this);" onMouseOut="mouseout(this);"
and you're set.
Right, and preloading is done by explicitely calling the preload function, preferably as an inline Javascript in head.
AMessler
09-12-2005, 02:47
Looks and works fine for me nice job
blackout000
10-12-2005, 22:56
why dont you preload and code the over with css which works even for those who dont have js enabled... oh and its much easier and clearer :)
why dont you preload and code the over with css which works even for those who dont have js enabled... oh and its much easier and clearer :)
I agree, why bother with Javascript when the same type of effect can be done in CSS which is easy to edit, easier to code, and works on all browsers.
Just a little update for you guys:
- added a simple javascript image-preloader (the css effects aren't 100% compatible to all browsers)
- added a RSS feed for the latest news (http://www.goteamspeak.com/rss.php)
- added a printable page for FAQ items
Awesome, but what about an RSS for the Developer Blog too?
Hey. There is no more reason to visit GoTeamSpeak.com when the developer blog is available on every fan site out there.
Except the forums.... The only reason I wanted it was so that it would tell me when it was updated....
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.