-
مشکل در tabindex یک فرم {فوری}
سلام به همه اساتید
من یک فرم جستجوی دامنه داخل سایتم گذاشتم که در انتهای صفحه است. مشکل اینجاست که وقتی صفحه من باز میشه سریع میپره میره روی input text فرم قرار میگیره
حالا من چجوری باید این حالت رو disable کنم که سایتم از بالا نمایش داده بشه و بصورت دیفالت روی این فرم نره !؟
منتظر نظرات شما دوستان هستم
یکم کارم فوریه
ممنون میشم راهنمایی کنید
اینم کد فرم :
کد PHP:
<form id="whoisform" name="whoisform" style="margin: 0px;" action="<?php echo $_SERVER['SCRIPT_NAME'];?>" method="get">
<div class="swForm">
<?php
?>
<b> WWW . </b><input type="text" name="domain" class="swDomain" value="<?php echo $domain;?>" onFocus="this.select();"/>
<?php
if( $swTldOptions){ // if listing tlds as a <select> box
?><b>.</b> <select class="swtld" name="tld"><?php echo $whois->TldOptions($tld,$swAlphabeticalTlds);?></select><?php
}
if( $swSecure ){ // should we get the user to enter a security code?
$secure->GenerateCode();
?>
<input type="text" class="swSecureCode" name="code" />
<img align="absmiddle" src="swsecureimage.php" class="swSecureImage" />
<?php
}
?>
<b> </b><input type="submit" name="lookup" value="<?php echo $swSubmitLabel;?>" class="swSubmit" onselect="this.select();" />
<div class="swInfo">
<?php
if( $swClean == 'optional' ){ // if cleaning is optional, give the user the option...
?>
<?php
}
if( $swHilite == 'optional' ){ // if whois output hilighting is optional, give the user the option...
?>
<?php
}
if( $swHilite == 'optional' || $swClean == 'optional' ) echo '<br />';
if( $swListTlds){ // list all supported tlds.
echo '<br />Supported Tlds: '.join(', ', $whois->GetTlds($swAlphabeticalTlds)).'.';
}
if( $swSecure ){ // display the message about the security code
echo "<br />".$swSecurityMessage."<br />";
}
?>
</div>
<?php
if( isset($swErrorMessage ) ){ // display any error messages...
?><div class="swError"><?php echo $swErrorMessage;?></div><?php
}
?>
</div>
</form>
-
-
May 9th, 2012 15:22
# ADS
-
عضو جدید
پاسخ : مشکل در tabindex یک فرم {فوری}
کدهای جاوا اسکریپت اینکارو میکنن
اینارو پاک کن ببین درست میشه؟
-