want to use own designed button

liunx

Guest
i am using the following code to hide a layer with in css:<br />
<br />
<button onclick="document.getElementById('layer1').style.visibility='hidden'">Hide Element</button><br />
<br />
i know that "<button>" supplies you with a default button design... is it possible to use my own designed button (image saved as a .gif), if yes where does the code go?<br />
<br />
thanks for the help,<br />
daniel<!--content-->You are right. <button> gives you a system default button, and the button will be rendered by the client machines OS defaults. If you want to use a custom button, then you will have to modify your code to work with an image.<!--content-->that if i place the same code into:<br />
<br />
<img src=http://www.webdeveloper.com/forum/archive/index.php/"blabla.gif" onClick="....><br />
<br />
??? tried that didnt seem to work, but maybe you ment that i will have to change the complete code and not where it is placed :confused: ?br />
<br />
if i need to change the complete code, could someone give me an idea of how to?!<br />
<br />
thanks,<br />
daniel:confused:<!--content-->I replied to your other post (<!-- m --><a class="postlink" href="http://webdeveloper.com/forum/showthread.php?threadid=40798">http://webdeveloper.com/forum/showthrea ... adid=40798</a><!-- m -->). By the way, please don't cross-post.<!--content-->:rolleyes: <br />
Dang cross-posters, lol<!--content-->
 
Back
Top