CP BUTTONS 2 BY MHAE™
2 posters
Page 1 of 1
CP BUTTONS 2 BY MHAE™
ORIGINATED BY MHAE
Title: Control Panel Buttons SwitchDescription: This script will create a single button that will hide and show your control panel buttons. The appearance of the button will depend on how well you customize it. To customize the said button, just go to the style attribute and do your thing.
Tested With: IE7, Fx2, O9
TEST IT HERE
- Code:
content_0.getElementsByTagName("td")[0].innerHTML+="<div id='myCPButtons' style='background:none;margin-top:10'>"
+"<input type='button' value='SHOW BUTTON' onclick='showButtons()' style='border:1px solid #999999;background-color:#000000;color:#ffffff;font-size:9pt'>"
+"</div>"
controlPanelButtons.style.display="none"
function showButtons(){
controlPanelButtons.style.display="block"
myCPButtons.innerHTML="<input type='button' value='HIDE BUTTON' onclick='hideButtons()' style='border:1px solid #999999;background-color:#000000;color:#ffffff;font-size:9pt'>"
}
function hideButtons(){
controlPanelButtons.style.display="none"
myCPButtons.innerHTML="<input type='button' value='SHOW BUTTON' onclick='showButtons()' style='border:1px solid #999999;background-color:#000000;color:#ffffff;font-size:9pt'>"
}
- Important Notes:
- Do not alter anything that is not meant to be altered in the code to avoid errors.
- I included the styling in the code itself to make it work for Internet explorer. Using an external file doesn't seem to work well with this code in Internet Explorer.
mhae™- IFB noob :)
- Posts : 36 Join date : 2009-07-06
Re: CP BUTTONS 2 BY MHAE™
thanks sisteksmoko wrote:haha its cool sis !!
mhae™- IFB noob :)
- Posts : 36 Join date : 2009-07-06
Re: CP BUTTONS 2 BY MHAE™
thanks sisteksmoko wrote:haha its cool sis !!
mhae™- IFB noob :)
- Posts : 36 Join date : 2009-07-06
Similar topics
» kewl buttons of mhae™
» cute buttons by mhae™
» FOrum buttons here :)
» your own chat box here by mhae™
» new siggy by mhae™
» cute buttons by mhae™
» FOrum buttons here :)
» your own chat box here by mhae™
» new siggy by mhae™
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|