i am using the following code to hide a layer with in css:
<button onclick="document.getElementById('layer1').style.visibility='hidden'">Hide Element</button>
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?
thanks for the help,
danielPut this in the <head>, or if you are using stylesheets, put it in there, minues the <style> tags:
<style type="text/css">
button {
background: transparent url("buttonbk.gif") no-repeat;
border: 0;
}
</style>
Change the background attribute to the url of the desired background image.
-Dani tried that and i do get a personally designed button in, but it does not function anymore. when i try clicking it nothing happens!?
is there another way?sorry for cross-posting, won't happen again!
Changing the styles should in no way affect scripts... could I see an example? (a page where this is happening on)
<button onclick="document.getElementById('layer1').style.visibility='hidden'">Hide Element</button>
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?
thanks for the help,
danielPut this in the <head>, or if you are using stylesheets, put it in there, minues the <style> tags:
<style type="text/css">
button {
background: transparent url("buttonbk.gif") no-repeat;
border: 0;
}
</style>
Change the background attribute to the url of the desired background image.
-Dani tried that and i do get a personally designed button in, but it does not function anymore. when i try clicking it nothing happens!?
is there another way?sorry for cross-posting, won't happen again!
Changing the styles should in no way affect scripts... could I see an example? (a page where this is happening on)