• 12-09-2006, 10:27:38
    #1
    Slm arkadaslar.Image upload scripti kurdum.imageyi upload edince show/hide image yazısı gelior.Ona tıklayınca linkler cıkıyor.Ona tıklamayınca linkler cıkmıor.

    Ama ben istiyorum ki oyle birşey olmasın.Linkler upload edince direk gelsin.Bunu nası yapabilirim ?

    Kodu :

    <?php if ($wrong!="yes") { ?>
                    <a href="#0" class="mtext" onclick="shide<?php echo $mxx; ?>(); return false;">Show/hide links and options for this image</a>
                    <?php } ?>
                  </p>
                <script language="JavaScript" type="text/javascript">
    function check<?php echo($mxx); ?>() 
    { if (document.getElementById("email<?php echo($mxx); ?>").value==""){alert("You did not enter your e-mail address at e-mail field No. <?php echo($mxx); ?>!"); return false; }
    }
    function shide<?php echo $mxx; ?>()
    {
    {
    gl<?php echo($mxx); ?>=0;
    document.getElementById("ui<?php echo($mxx); ?>").innerHTML='<p class="heading1">Use these links to share your picture: </p> <span class="style2"> <?php if ($hotlink3=="yes") {echo("  <p class=\"text\">Show image to friends: <br> <input name=\"textfield222\" type=\"text\" class=\"box\" value=\"$uselink2\" size=\"100\" onClick=\"select();\"></p>"); } ?><?php if ($hotlink1=="yes") {echo("<p class=\"text\">Hotlink for forums 1: <br><input name=\"textfield\" type=\"text\" class=\"box\" value=\"[IMG]"); echo($uselink); echo("[/IMG]\" size=\"100\" onClick=\"select();\"></p>"); } ?> <?php if ($hotlink2=="yes") {echo("<p class=\"text\">Hotlink for forums 2: <br> <input name=\"textfield2\" type=\"text\" class=\"box\" value=\"[img=$uselink]\" size=\"100\" onClick=\"select();\"></p>"); } ?><?php if (strtolower(strtolower($ext))=="bmp" || strtolower(strtolower($ext))=="jpg" || strtolower(strtolower($ext))=="jpeg" || strtolower(strtolower($ext))=="png" || strtolower(strtolower($ext))=="gif"){if ($forums1=="yes" ) {echo(" <p class=\"text\">Thumbnail for forums 1: <br><input name=\"textfieldx\" type=\"text\" class=\"box\" value=\"[IMG]"); echo($thumblink); echo("[/IMG]\" size=\"100\" onClick=\"select();\"></p>"); }} ?><?php if (strtolower(strtolower($ext))=="bmp" || strtolower(strtolower($ext))=="jpg" || strtolower(strtolower($ext))=="jpeg" || strtolower(strtolower($ext))=="png" || strtolower(strtolower($ext))=="png" || strtolower(strtolower($ext))=="gif"){if ($forums2=="yes" ) {echo(" <p class=\"text\">Thumbnail for forums 2: <br> <input name=\"textfieldx1\" type=\"text\" class=\"box\" value=\"[img=$thumblink]\" size=\"100\" onClick=\"select();\"></p>"); }} ?> <?php if ($websites=="yes") {echo(" <p class=\"text\">Hotlink for websites: <br> <input name=\"textfield22\" type=\"text\" class=\"box\" value=\'<a href=\"$mhost\"><img src=\"$uselink;\" border=\"0\" width=\"250\" alt=\"$acomment\" /></a>\' size=\"100\" onClick=\"select();\">  </p>"); } ?><?php if ($directlink=="yes") {echo("  <p class=\"text\">Direct link to image: <br>       <input name=\"textfield223\" type=\"text\" class=\"box\" value=\"$uselink\" size=\"100\" onClick=\"select();\"></p>"); } ?> </span><p class="heading1">Use this link to remove this image from our server: </p><form action="remmail.php" method="post" name="form<?php echo $mxx; ?>" target="email2" class="style2"  onsubmit="window.open(\'remmail.php\', \'email2\', \'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=265,left = 287,top = 209\');"><input name="dlink" type="hidden" id="dlink" value="<?php echo $uselink2; ?>"><input name="link" type="hidden" id="link" value="<?php echo $remlink; ?>"><input name="filen" type="hidden" id="filen" value="<?php echo $rft; ?>"><?php echo("<p class=\"text\"><input name=\"textfield223\" type=\"text\" class=\"box\" value=\"$remlink\" size=\"100\" onClick=\"select();\"></p>"); ?>       <table width="525" border="0"> <tr> <td width="519" background="../audio/images/middleline.jpg">&nbsp;</td></tr> </table> <p><span class="heading1"><strong>E-mail me the &quot;show image to friends&quot; and the image removal link:</strong></span></p>   <p><span class="heading1"><strong></strong></span><span class="text">               <input name="email" type="text" id="email<?php echo($mxx); ?>">  <input name="Submit2" type="submit" class="smallbutton" value="Submit" onClick="return check<?php echo $mxx; ?>()">  </span></p>  </form>     <table width="525" border="0">  <tr> <td width="519" background="../audio/images/middleline.jpg">&nbsp;</td> </tr></table>';
    }
    }
          </script>
                  <div id="ui<?php echo $mxx; ?>" name="0"></div>
                <p class="text style2">&nbsp;</p>
                <?php }}} $mxx++;} ?>
  • 12-09-2006, 10:47:32
    #2
    Üyeliği durduruldu
    <?php if ($wrong!="yes") { ?>
                    <a href="#0" class="mtext" onclick="shide<?php echo $mxx; ?>(); return false;">Show/hide links and options for this image</a>
                    <?php } ?>
                  </p>
                <script language="JavaScript" type="text/javascript">
    function check<?php echo($mxx); ?>() 
    { if (document.getElementById("email<?php echo($mxx); ?>").value==""){alert("You did not enter your e-mail address at e-mail field No. <?php echo($mxx); ?>!"); return false; }
    }
    
    
          </script>
               <div id=saho><p class="heading1">Use these links to share your picture: </p> <span class="style2"> <?php if ($hotlink3=="yes") {echo("  <p class=\"text\">Show image to friends: <br> <input name=\"textfield222\" type=\"text\" class=\"box\" value=\"$uselink2\" size=\"100\" onClick=\"select();\"></p>"); } ?><?php if ($hotlink1=="yes") {echo("<p class=\"text\">Hotlink for forums 1: <br><input name=\"textfield\" type=\"text\" class=\"box\" value=\"[IMG]"); echo($uselink); echo("[/IMG]\" size=\"100\" onClick=\"select();\"></p>"); } ?> <?php if ($hotlink2=="yes") {echo("<p class=\"text\">Hotlink for forums 2: <br> <input name=\"textfield2\" type=\"text\" class=\"box\" value=\"[img=$uselink]\" size=\"100\" onClick=\"select();\"></p>"); } ?><?php if (strtolower(strtolower($ext))=="bmp" || strtolower(strtolower($ext))=="jpg" || strtolower(strtolower($ext))=="jpeg" || strtolower(strtolower($ext))=="png" || strtolower(strtolower($ext))=="gif"){if ($forums1=="yes" ) {echo(" <p class=\"text\">Thumbnail for forums 1: <br><input name=\"textfieldx\" type=\"text\" class=\"box\" value=\"[IMG]"); echo($thumblink); echo("[/IMG]\" size=\"100\" onClick=\"select();\"></p>"); }} ?><?php if (strtolower(strtolower($ext))=="bmp" || strtolower(strtolower($ext))=="jpg" || strtolower(strtolower($ext))=="jpeg" || strtolower(strtolower($ext))=="png" || strtolower(strtolower($ext))=="png" || strtolower(strtolower($ext))=="gif"){if ($forums2=="yes" ) {echo(" <p class=\"text\">Thumbnail for forums 2: <br> <input name=\"textfieldx1\" type=\"text\" class=\"box\" value=\"[img=$thumblink]\" size=\"100\" onClick=\"select();\"></p>"); }} ?> <?php if ($websites=="yes") {echo(" <p class=\"text\">Hotlink for websites: <br> <input name=\"textfield22\" type=\"text\" class=\"box\" value=\'<a href=\"$mhost\"><img src=\"$uselink;\" border=\"0\" width=\"250\" alt=\"$acomment\" /></a>\' size=\"100\" onClick=\"select();\">  </p>"); } ?><?php if ($directlink=="yes") {echo("  <p class=\"text\">Direct link to image: <br>       <input name=\"textfield223\" type=\"text\" class=\"box\" value=\"$uselink\" size=\"100\" onClick=\"select();\"></p>"); } ?> </span><p class="heading1">Use this link to remove this image from our server: </p><form action="remmail.php" method="post" name="form<?php echo $mxx; ?>" target="email2" class="style2"  onsubmit="window.open(\'remmail.php\', \'email2\', \'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=265,left = 287,top = 209\');"><input name="dlink" type="hidden" id="dlink" value="<?php echo $uselink2; ?>"><input name="link" type="hidden" id="link" value="<?php echo $remlink; ?>"><input name="filen" type="hidden" id="filen" value="<?php echo $rft; ?>"><?php echo("<p class=\"text\"><input name=\"textfield223\" type=\"text\" class=\"box\" value=\"$remlink\" size=\"100\" onClick=\"select();\"></p>"); ?>       <table width="525" border="0"> <tr> <td width="519" background="../audio/images/middleline.jpg">&nbsp;</td></tr> </table> <p><span class="heading1"><strong>E-mail me the &quot;show image to friends&quot; and the image removal link:</strong></span></p>   <p><span class="heading1"><strong></strong></span><span class="text">               <input name="email" type="text" id="email<?php echo($mxx); ?>">  <input name="Submit2" type="submit" class="smallbutton" value="Submit" onClick="return check<?php echo $mxx; ?>()">  </span></p>  </form>     <table width="525" border="0">  <tr> <td width="519" background="../audio/images/middleline.jpg">&nbsp;</td> </tr></table>
    </div>
                <p class="text style2">&nbsp;</p>
                <?php }}} $mxx++;} ?>
    böyle denesene
    div id si sorun değilde normalde yazdırabilirsin
    +
    birşey daha şu code kutusuna tümünü seç filan yapılamazmı birde width biraz daha geniş olsa iyi olcak
  • 12-09-2006, 11:12:29
    #3
    Çok saol saho.Allah tuttugunu altın etsin
  • 12-09-2006, 14:03:02
    #4
    Üyeliği durduruldu
    inşallah