I've been creating my website pages with Illustrator CS (File>Save to Web) and I want to create some image rollovers but have been unsuccessful so far. I read the Webmonkey and html.net CSS tutorials and have googled many pages but can't find a solution appropriate to my situation. I use Illustrator because I did my site that way a while ago and need to keep my pages updated until I get better w/ CSS; plus I want to devote more time to my artwork/music instead of poring over lines of code.
This is my CSS for the rollover:
.rollover01 a {
display: block;
width: 90px;
height: 35px;
background: transparent url(picturebw.jpg) no-repeat;
}
.rollover01 a:hover {
background: transparent url(picturecolor.jpg) no-repeat;
}
and this is what I should use in my BODY:
<div class="rollover01"> <a href="../photoalbum/index.html"></a> </div>
I know that it works because I tested it out in a separate file. My problem lies in figuring out how to incorporate this into my HTML from Illustrator.
The content in my meta tag from my HTML is:
text/html
Illustrator generates the following in the BODY for the image I want to make a rollover for (obviously inside a table with appropriate TableRow):
<TD ROWSPAN=3 ALIGN=left VALIGN=top> <IMG SRC="images/picturebw.jpg" WIDTH=91 HEIGHT=36 BORDER=0 ALT="" USEMAP="#picturebw_Map"></TD>
The UseMap command refers to a line at the end of the file which looks like this:
<MAP NAME="picturebw_Map"> <AREA SHAPE="rect" ALT="" COORDS="1,0,91,35" HREF="../photoalbum/index.html"> </MAP>
I've tried placing the DIV CLASS tag in the TABLE, around the MAP tag, in the AREA tag; all unsuccessfully. I know image rollovers can be created in Photostop & ImageReady, but I'd still end up with the same problem of how to inject those images into the HTML. I also tried deleting the IMG SRC but keeping the CSS; but that just leaves a blank area in my page.
If you have a CSS solution = great. If you know a way to make Illustrator/Photoshop do this for me = great.

New Topic/Question
Reply



MultiQuote




|