NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Show/Hide??

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 11-28-2005, 06:19 AM THREAD STARTER               #1 (permalink)
Account Suspended
Join Date: Sep 2005
Posts: 345
dreaminginspiration has a spectacular aura aboutdreaminginspiration has a spectacular aura about
 



Show/Hide??


Hey,

Ive been trying to add a show/hide option like that found on http://www.hidemyass.com and http://www.u2l.be/proxy.php but ive failed several times.

If you know of a way to hide and show the advanced options like these two proxys i would greatly appreciate you telling me. In return i can provide a link to your site on www.gamesproxy.com and my NP (not that i have much).

Thanks
DI
dreaminginspiration is offline  
Old 11-28-2005, 06:47 AM   #2 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
Join Date: Aug 2004
Posts: 3,803
stscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud of
 



The owner of hide my ass is a member of this forum, you might want to look in the search engine section for their information.

-Steve
stscac is offline  
Old 11-28-2005, 08:41 AM   #3 (permalink)
Tech Support
Join Date: Mar 2005
Posts: 4,944
Eric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatnessEric Has achieved greatness
 

Member of the Month
MOTM September 2005
Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Animal Rescue Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Baby Health Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse Diabetes Protect Our Planet Multiple Sclerosis Autism Adoption Special Olympics
http://www.dustindiaz.com/basement/block-toggle.html

HTML Code:
<html>
<head>
<script type="text/javascript">
<!--
function switchMenu(obj) {
	var el = document.getElementById(obj);
	if ( el.style.display != "none" ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
	}
}
//-->
</script>
</head>

<body>
<div id="wrapper">
<p><a href="http://www.dustindiaz.com/dhtml-expand-and-collapse-div-menu/" title="DHTML expand and collapse Menu">Return to "DHTML expand and collapse div menu" article"</a></p>
	<p><a onclick="switchMenu('myvar');" title="Switch the Menu">Switch it now</a></p>
	<div id="myvar">
	<p>This is paragraph text that is all up in this place that does some pretty cool stuff</p>
	</div>
</div>

</body>
</html>
Eric is offline  
Old 11-28-2005, 09:15 AM THREAD STARTER               #4 (permalink)
Account Suspended
Join Date: Sep 2005
Posts: 345
dreaminginspiration has a spectacular aura aboutdreaminginspiration has a spectacular aura about
 



thanks SV ive tried things like this so hopefully this one will work

Ok i tried it and it does nothing, see here: http://www.gamesproxy.com/ok/
????: NamePros.com http://www.namepros.com/programming/143568-show-hide.html

Heres the full code of it:

PHP Code:
<?php

require 'PHProxy.class.php';

$config = array
(
    
'url_var_name'             => 'q',
    
'flags_var_name'           => 'hl',
    
'get_form_name'            => '__script_get_form',
    
'proxy_url_form_name'      => 'poxy_url_form',
    
'proxy_settings_form_name' => 'poxy_settings_form',
    
'max_file_size'            => -1
);

$flags 'prev';

if (isset(
$_GET[$config['flags_var_name']]))
{
    
$flags $_GET[$config['flags_var_name']];
}

$PHProxy = & new PHProxy($config$flags);

if (isset(
$_GET[$PHProxy->config['get_form_name']]))
{
    
$url decode_url($_GET[$PHProxy->config['get_form_name']]);
    
$qstr preg_match('#\?#'$url) ? (strpos($url'?') === strlen($url) ? '' '&') : '?';
    
$arr explode('&'$_SERVER['QUERY_STRING']);
    if (
preg_match('#^'.$PHProxy->config['get_form_name'].'#'$arr[0]))
    {
        
array_shift($arr);
    }
    
$url .= $qstr implode('&'$arr);
    
$PHProxy->start_transfer(encode_url($url));
    echo 
$PHProxy->return_response();
    exit();
}

if (isset(
$_GET[$PHProxy->config['url_var_name']]))
{
    
$PHProxy->start_transfer($_GET[$PHProxy->config['url_var_name']]);
    echo 
$PHProxy->return_response();
    exit();
}

if (isset(
$_GET['action'], $_GET['delete']) && $_GET['action'] == 'cookies')
{
    
$PHProxy->delete_cookies($_GET['delete']);
    
header("Location: $PHProxy->script_url?action=cookies");
    exit();
}

if (isset(
$_POST['username'], $_POST['password'], $_POST['server'], $_POST['realm'], $_POST['auth_url']))
{
    
$PHProxy->request_method 'GET';
    
$PHProxy->url_segments['host'] = decode_url($_POST['server']);
    
$PHProxy->set_authorization($_POST['username'], $_POST['password']);
    
$PHProxy->start_transfer($_POST['auth_url']);
    echo 
$PHProxy->return_response();
    exit();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
  <title>PHProxy</title>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
  <link rel="stylesheet" type="text/css" href="style.css" media="all" />
  <script src="javascript.js" type="text/javascript"></script>
  <script type="text/javascript">
<!--
function switchMenu(obj) {
    var el = document.getElementById(obj);
    if ( el.style.display != "none" ) {
        el.style.display = 'none';
????: NamePros.com http://www.namepros.com/showthread.php?t=143568
    }
    else {
        el.style.display = '';
    }
}
//-->
</script>
</head>
<body>
<div id="container">
  <div id="menu">
    <a href="<?php echo $_SERVER['PHP_SELF'?>">URL Form</a> | 
    <a href="?action=cookies">Manage Cookies</a>
  </div>
  <div class="title">PHProxy</div>
  <noscript><div class="error"><big>You have Javascript disabled. Please enable it to use the proxy</big></div></noscript>
<?php

if (isset($_GET['error']))
{
    echo 
'<div class="error"><b>Error:</b> ' htmlspecialchars($_GET['error']) . '</div>';
    if (isset(
$_GET['retry']))
    {
        echo 
'<div class="error"><a href="'$PHProxy->proxify_url(decode_url($_GET['retry'])) .'">Retry</a></div>';
    } 
}

if (isset(
$_GET['action']))
{
    if (
$_GET['action'] == 'cookies')
    {
        
$cookies $PHProxy->get_cookies('COOKIE'false);

        if (!empty(
$cookies))
        {
            echo 
'<table style="width: 100%">';
            echo 
'<tr><td class="option" colspan="5"><a href="?action=cookies&delete=all">Clear All Cookies</a></td></tr>';
            echo 
'<tr><td class="head">Name</td><td class="head">Domain</td><td class="head">Path</td><td class="head">Value</td><td class="head">Action</td></tr>';

            for (
$i 0$i count($cookies); $i++)
            {
                
$j $i&' class="shade"' '';
                echo 
"<tr><td$j>{$cookies[$i][0]}</td><td$j>{$cookies[$i][1]}</td><td$j>{$cookies[$i][2]}</td>"
                   
"<td$j>" wordwrap($cookies[$i][3], 15' ') ."</td><td$j><a href="'"?action=cookies&delete='md5(implode(''$cookies[$i])) . '">delete</a></td></tr>';
            }

            echo 
'</table>';
        }
        else
        {
            echo 
'<div class="error">No cookies available.</div>';
        }
    }
    else if (
$_GET['action'] == 'auth' && isset($_GET['server'], $_GET['realm'], $_GET['auth_url']))
    {
        echo 
'<form method="post" action="' $_SERVER['PHP_SELF'] . '">';
        echo 
'<input type="hidden" name="server" value="'$_GET['server'] .'" />';
        echo 
'<input type="hidden" name="realm" value="'$_GET['realm'] .'" />';
        echo 
'<input type="hidden" name="auth_url" value="'$_GET['auth_url'] .'" />';
        echo 
'<table style="width: 100%">';
        echo 
'<tr><td colspan="2" class="option">Enter user name and password for <b>' decode_url($_GET['realm']) . '</b> at <i>' decode_url($_GET['server']) . '</i></td></tr>';
        echo 
'<tr><td width="30%" class="option">User name</td><td class="option"><input type="text" name="username" value="" /></td></tr>';
        echo 
'<tr><td width="30%" class="option">Password</td><td class="option"><input type="password" name="password" value="" /></td></tr>';
        echo 
'<tr><td colspan="2" style="text-align: center"><input type="submit" value="OK" /></td></tr>';
        echo 
'</table>';
        echo 
'</form>';
    }

else
{
  
?>
<a onclick="switchMenu('myvar');" title="Switch the Menu">Switch it now</a>
<form name="<?php echo $PHProxy->config['proxy_url_form_name'?>" method="get" action="<?php echo $_SERVER['PHP_SELF'?>">
  <input type="hidden" name="<?php echo $PHProxy->config['url_var_name'?>" value="" id="url_input" />
  <input type="hidden" name="<?php echo $PHProxy->config['flags_var_name'?>" value="" />
  </form>
  <form name="<?php echo $PHProxy->config['proxy_settings_form_name'?>" method="get" action="" onsubmit="return submit_form();">
  <table style="width: 100%">
  <tr><td class="option" style="width: 20%">URL</td><td class="option" style="width: 80%">&nbsp;<input type="text" name="url" size="70" value="" /></td></tr>
  <div id="myvar"><?php echo $PHProxy->options_list(truetrue?>
  <tr><td class="option" style="width: 20%">New Window</td><td class="option" style="width: 80%"><input type="checkbox" name="new_window" />Open URL in a new window </td></tr>
  </div></table>
  <div style="text-align: center"><input type="submit" name="browse" value="Browse" onclick="return submit_form();" /></div>
  <div style="text-align: center">PHProxy <?php echo $PHProxy->version ?> &copy; 2005 <a href="http://www.whitefyre.com/">whiteFyre</a>
</div>
  </form>
  <?php
}

echo 
'</div></body></html>';
?>
dreaminginspiration is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
NEED help with replacing show/hide text *can I do it? bobbyb5 Web Design Discussion 1 02-17-2005 09:44 PM

 
All times are GMT -7. The time now is 02:03 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger