Hi, i finally got my psd uploaded to your website, and the preview was working out fine. But im using this design to put on my personal page, (Myspace). But some of the codes you use for "_linkovers" are javascript, that myspace do not accept .. and i was wondering, if i or you could some how convert the javascript into CSS ?
If you're making a page for
If you're making a page for Myspace, I might suggest using http://psdspace.com. It's the same engine as psd2css Online, but has some extra Layer Naming Conventions for some of the Myspace div IDs.
I bet there is a way to use a:hover in CSS to get a _linkover type effect. I'll look into it.
psdspace.com
I used this website, so it could convert it to the right CSS that myspace accepts, but as i pasted the code the generator gave me, myspace didnt accept it and turned it into a bunch of dots, (like it always does, if javascript is found). Im kinda confused by this situation, considering - isnt this psdspace, specifically made for myspace psd-css files ?
Well that's not good. I
Well that's not good. I haven't gotten any support issues for psdspace.com so I haven't used it in a while. I'll run my tests on it again. If you want to send me your PSD file in the meantime, I can see what's going on there too. Thanks.
--
Shaun
shaun@psd2cssonline.com
Hello A Kuhn - I just made a
Hello A Kuhn -
I just made a new myspace thing at psdspace.com:
http://www.myspace.com/psd2css
It's simple but it worked. Can you send me your PSD file that's not working? Thanks.
--
Shaun
This kind of thing is easy
This kind of thing is easy with text (text color, background color, font size, etc.), but not so much with images like psd2css Online wants to do.
So far I have something like this - works in IE7 but not FF so I'm still looking. Layer-1.jpg is the default state for the 'button', Layer-2.jpg is the roll over state, and Layer-3.png is a transparent PNG of the same exact size as Layer-1.jpg and Layer-2.jpg.
< style type="text/css">
< !--
/* You named this layer nothover_bkgnd_jpg */
#Layer-1 {
position: absolute;
left: +33px;
top: +73px;
width: 291px;
height: 68px;
z-index: 1;
background-image: url(Layer-1.jpg);
}
a:link { color: #F88; }
a:visited { color: #F88; }
a:hover {
background-image: url(Layer-2.jpg);
background-position: 0px 0px;
}
-->
< /style>
< div id="Layer-1" >
< a href="#">< img src="Layer-3.png" alt="filler" border="0"/>< /a>
< /div>
Understanding
i do see how this -
a:link { color: #F88; }
a:visited { color: #F88; }
a:hover {
background-image: url(Layer-2.jpg);
background-position: 0px 0px;
& the rest of those codes help apply the rollover effect, but what i dont understand .. is that specific code, meaning by how is that hover only for layer 1 ? i dont see anything that specifys which button hover. like, it looks like just one hover for all buttons. i think that makes alot more sense -
oh yeah - that's important
oh yeah - that's important isn't it. sorry about that.
You can modify the a:hover attribute of just a specific DIV by putting the id of the div just before the a:hover specifier. So for instance:
a:hover { color: #000; }
#Layer-1 a:hover {
background-image: url(Layer-2.jpg);
background-position: 0px 0px;
}
would make a hover event on all links except any within CSS Layer-1 turn the text color black, while a hover event on any links inside the CSS Layer-1 would get the new background-image.
But again, it's not working on FF so if you figure it out for FF, I'd love to hear about it.
Thanks.
maybe if in dreamweaver?
maybe if in dreamweaver? someone could walk me through, cause i currently just use photoshop, and dreamweaver.