View Full Version: Html Slicing

Slick Designs > Tutorials > Html Slicing


Title: Html Slicing


jesuses left leg - July 29, 2005 02:03 PM (GMT)
This is something i learnt from my internet "surfing" when i'm bored at home, so here goes, may come in useful at some point.... It is for making a nav-bar for a website.
Firstly you will want to make the graphics you will be using i'm going to leave that up to you (to shorten this tutorial) but i will use this
user posted image

Next simply take out your Slice tool user posted image and drag a box around each of your buttons where you want them to link to sites.
user posted image

Next pull out your slice slection tool user posted image and double click each of your sliced links in turn and then type in the url you want it to link to (you can fill in the lower fields too if you wish).
user posted image

Click File>Save For Web and the Save button but make sure that it is saved as "Html and Images"
user posted image

This will save the html and a folder with the images in
user posted image

Close your PhotoShop and then open your html to the Nav-Bar in Frontpage or your internet browser. If in Frontpage click the html button at the bottom and if in your browser for example Internet Explorer then click View>Source
user posted image

It should look something like this
CODE
<html>
<head>
<title>Untitled-1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0"

marginheight="0">
<!-- ImageReady Slices (Untitled-1) -->
<table id="Table_01" width="646" height="52" border="0" cellpadding="0"

cellspacing="0">
<tr>
 <td>
  <img src="images/nav-bar_01.png" width="27"

height="52" alt=""></td>
 <td>
  <a href="http://www.home.com">
   <img src="images/nav-bar_02.png"

width="90" height="52" border="0" alt=""></a></td>
 <td>
  <img src="images/nav-bar_03.png" width="15"

height="52" alt=""></td>
 <td>
  <a href="http://www.news.com">
   <img src="images/nav-bar_04.png"

width="90" height="52" border="0" alt=""></a></td>
 <td>
  <img src="images/nav-bar_05.png" width="17"

height="52" alt=""></td>
 <td>
  <a href="http://www.gallery.com">
   <img src="images/nav-bar_06.png"

width="88" height="52" border="0" alt=""></a></td>
 <td>
  <img src="images/nav-bar_07.png" width="17"

height="52" alt=""></td>
 <td>
  <a href="http://www.forums.com">
   <img src="images/nav-bar_08.png"

width="89" height="52" border="0" alt=""></a></td>
 <td>
  <img src="images/nav-bar_09.png" width="20"

height="52" alt=""></td>
 <td>
  <a href="http://www.links.com">
   <img src="images/nav-bar_10.png"

width="87" height="52" border="0" alt=""></a></td>
 <td>
  <img src="images/nav-bar_11.png" width="106"

height="52" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>


Next host all of the images in the image folder with an image-hosting website such as Imageshack and when you see a line of text like this in the html
QUOTE
<img src="images/nav-bar_01.png" width="27" height="52"
replace the red section with the link to the corrosponding image (i suggest hosting the images one at a time so as not to get confused). Save this and then you can insert the code into your webpage where you want the Nav-Bar.

Tutorial created by Jesuses Left Leg.

slick - September 14, 2005 02:07 PM (GMT)
Nice submit to good tutproals




Hosted for free by InvisionFree