crystal/glassy icons - Printable Version
-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: crystal/glassy icons (/showthread.php?tid=53046)
crystal/glassy icons by stoshrocket on 11-17-2005 at 05:21 PM
ive recently got into adobe photoshop and creating a new website, but want to go all out and create some good looks for the site, rather than the stock site. So, i was thinking of having the homepage just 5 icons on the page that you can mouse over and then click on to navigate, other than that, have a navi bar as well. But, the problem is, im not oo sure how to go about maing icons (well small pics really), any people who have done it before know where to start. I also want to have them be 'glassy' as some people call it, and for the navi links to be in a box that is 'galssy' but i dont know how to do this in Adobe Photoshop. Anyone know a good method/program to do this?? a-thank-you!
RE: crystal/glassy icons by absorbation on 11-17-2005 at 05:48 PM
Adding gradients to images gives a glossy effect however advanced images like this are not for begginers.
Here are some good example I have:
http://www.absorbation.com/files/Icons.zip (note currently uploading)
RE: crystal/glassy icons by stoshrocket on 11-17-2005 at 05:57 PM
<offtopic>
kinda offtopic but what the hey, its on graphics (ish), ive always wondered Absorbtion how you got your pic way back when it was those funny freaky heads to change every tme i press reload/refresh, and now youve done it with ure sig, do you have to use a special freaky code or something?
</offtopic>
nice icons btw, mind if i use 2 for my website (i'll link to you as always and mention youre the guy who did the icons)
RE: crystal/glassy icons by absorbation on 11-17-2005 at 06:10 PM
It's a php script
code: <?php
error_reporting(E_ALL ^ E_NOTICE);
$folderdir = "./images"; //EDIT THIS
$types = array('jpeg','.png','.bmp','.jpg','.gif');
//------ dont edit--------
$dir = array();
$folder=opendir($folderdir);
while ($file = readdir($folder)) $dir[] = $file;
closedir($folder);
$files = array();
for ($i=0;$dir[$i];$i++){
$ext=strtolower(substr($dir[$i],-4));
if (in_array($ext,$types)){
$files[]=$dir[$i];
}
}
$image = $files[rand(0,count($files)-1)];
$ext=strtolower(substr($image,-4));
$ext = str_replace('.','',$ext);
Header ("Content-type: image/$ext");
readfile($folderdir . '/' .$image);
?>
RE: crystal/glassy icons by stoshrocket on 11-17-2005 at 06:13 PM
erm... hmm.... ok, thanks! can i use 2 of those icons linking back to you please?
EDIT:
also, with the code:
code: $folderdir = "./images"; //EDIT THIS
$types = array('jpeg','.png','.bmp','.jpg','.gif');
do i have to change the "./images" to "http://webstieurl/images"????
RE: crystal/glassy icons by absorbation on 11-17-2005 at 06:30 PM
quote: Originally posted by Methos2
do i have to change the "./images" to "http://webstieurl/images"????
yeh what direcotry you want them in and the icons are by everaldo and you dont need to link back to me at all
RE: crystal/glassy icons by stoshrocket on 11-17-2005 at 06:33 PM
woot! thank-you!
RE: RE: crystal/glassy icons by stoshrocket on 11-17-2005 at 06:48 PM
quote: Originally posted by Absorbation
It's a php script
code: <?php
error_reporting(E_ALL ^ E_NOTICE);
$folderdir = "./images"; //EDIT THIS
$types = array('jpeg','.png','.bmp','.jpg','.gif');
//------ dont edit--------
$dir = array();
$folder=opendir($folderdir);
while ($file = readdir($folder)) $dir[] = $file;
closedir($folder);
$files = array();
for ($i=0;$dir[$i];$i++){
$ext=strtolower(substr($dir[$i],-4));
if (in_array($ext,$types)){
$files[]=$dir[$i];
}
}
$image = $files[rand(0,count($files)-1)];
$ext=strtolower(substr($image,-4));
$ext = str_replace('.','',$ext);
Header ("Content-type: image/$ext");
readfile($folderdir . '/' .$image);
?>
im kinda confused, do i have to put in this code into a .php fil then insert the url of the php file in the avatar url???
RE: crystal/glassy icons by Plik on 11-17-2005 at 06:49 PM
quote: Originally posted by Absorbation
It's a php script
code: <?php
error_reporting(E_ALL ^ E_NOTICE);
$folderdir = "./images"; //EDIT THIS
$types = array('jpeg','.png','.bmp','.jpg','.gif');
//------ dont edit--------
$dir = array();
$folder=opendir($folderdir);
while ($file = readdir($folder)) $dir[] = $file;
closedir($folder);
$files = array();
for ($i=0;$dir[$i];$i++){
$ext=strtolower(substr($dir[$i],-4));
if (in_array($ext,$types)){
$files[]=$dir[$i];
}
}
$image = $files[rand(0,count($files)-1)];
$ext=strtolower(substr($image,-4));
$ext = str_replace('.','',$ext);
Header ("Content-type: image/$ext");
readfile($folderdir . '/' .$image);
?>
Eewww use Header("Location: $imageurl"); so it redirects to the images, so that people can cache them.
RE: crystal/glassy icons by stoshrocket on 11-17-2005 at 07:02 PM
??? im rubbish at php by the way, do you mean change
code: $folderdir = "./images"; //EDIT THIS
$types = array('jpeg','.png','.bmp','.jpg','.gif');
to this...
code: $folderdir = Header("Location: $imageurl");
$types = array('jpeg','.png','.bmp','.jpg','.gif');
???
RE: crystal/glassy icons by Plik on 11-17-2005 at 07:20 PM
quote: Originally posted by Methos2
??? im rubbish at php by the way, do you mean change
code: $folderdir = "./images"; //EDIT THIS
$types = array('jpeg','.png','.bmp','.jpg','.gif');
to this...
code: $folderdir = Header("Location: $imageurl");
$types = array('jpeg','.png','.bmp','.jpg','.gif');
???
nah i was refering to how the image is outputed
code: <?php
error_reporting(E_ALL ^ E_NOTICE);
$folderdir = "./images"; //EDIT THIS
$types = array('jpeg','.png','.bmp','.jpg','.gif');
//------ dont edit--------
$dir = array();
$folder=opendir($folderdir);
while ($file = readdir($folder)) $dir[] = $file;
closedir($folder);
$files = array();
for ($i=0;$dir[$i];$i++){
$ext=strtolower(substr($dir[$i],-4));
if (in_array($ext,$types)){
$files[]=$dir[$i];
}
}
$image = $files[rand(0,count($files)-1)];
$ext=strtolower(substr($image,-4));
$ext = str_replace('.','',$ext);
Header ("Content-type: image/$ext");
readfile($folderdir . '/' .$image);
header("Location: " . $folderdir . "/" . $image);
?>
RE: crystal/glassy icons by stoshrocket on 11-17-2005 at 08:05 PM
ah okies, changing.... thanks!
|