Yes its me again.
I'm looking to use the following JS to Show/Hide the options in PHProxy.
It wasn't until after i put that together that i realised the Checkboxes are called in PHP, so i tried it any way by wrapping the Div tags around the variables and it created a list of Show/Hide links that all did the same thing.
Now i'm thinking i'm going to have to make a seperate Div for each option but thats not what i want!
So does anyone have any ideas on how i can wrap the whole thing in the Div and just have one Show/Hide button?
PHProxy
(So you can see what i mean)
I'm looking to use the following JS to Show/Hide the options in PHProxy.
HTML:
<html>
<head>
<script>
function showhide(id){
if (document.getElementById){
obj = document.getElementById(id);
if (obj.style.display == "none"){
obj.style.display = "";
} else {
obj.style.display = "none";
}
}
}
</script>
</head>
<body>
<br>
<br>
<p><a href="#" onclick="showhide('script'); return(false);">Show Options</a></p>
<div style="display: none;" id="script">
<ul>
<li class="option"><label><input type="checkbox" name="hl[include_form]" checked="checked" />Include mini URL-form on every page</label></li>
<li class="option"><label><input type="checkbox" name="hl[remove_scripts]" checked="checked" />Remove client-side scripting (i.e JavaScript)</label></li>
<li class="option"><label><input type="checkbox" name="hl[accept_cookies]" checked="checked" />Allow cookies to be stored</label></li>
<li class="option"><label><input type="checkbox" name="hl[show_images]" checked="checked" />Show images on browsed pages</label></li>
<li class="option"><label><input type="checkbox" name="hl[show_referer]" checked="checked" />Show actual referring Website</label></li>
<li class="option"><label><input type="checkbox" name="hl[rotate13]" />Use ROT13 encoding on the address</label></li>
<li class="option"><label><input type="checkbox" name="hl[base64_encode]" checked="checked" />Use base64 encodng on the address</label></li>
<li class="option"><label><input type="checkbox" name="hl[strip_meta]" checked="checked" />Strip meta information tags from pages</label></li>
<li class="option"><label><input type="checkbox" name="hl[strip_title]" />Strip page title</label></li>
<li class="option"><label><input type="checkbox" name="hl[session_cookies]" checked="checked" />Store cookies for this session only</label></li>
</ul>
</body>
</html>
Now i'm thinking i'm going to have to make a seperate Div for each option but thats not what i want!
So does anyone have any ideas on how i can wrap the whole thing in the Div and just have one Show/Hide button?
PHProxy
(So you can see what i mean)