Help - Search - Members - Calendar
Full Version: <input type="button>
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
ofi
Hi fellas

well, let me try to explain this, i am making comment form, everything is working fine, but instead of comment i like to add clickable link using
CODE
<form>
<input type="button" name="button1" value="click me" />
</form>


When the you click the button, a popup window comes up, first you enter web link then name, so instead of comment, the link goes in. happy.gif
Christian J
Sounds like http://www.irt.org/script/338.htm

Users without javascript will not be able to use the form, OTOH JS dependency may stop spammers as well (but in the example above it seems spammers can spam even without using the popup window, to prevent that you might set the form ACTION with JS too). Perhaps you could add a notice in a NOSCRIPT element that JS is required to post.

ofi
Hi
I have include the script to page, but i get space above the links http://almennt.com/ny_sida/skrar.php

Can anyone see what is wrong here

CODE
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-type" value="charset=UTF-8" />
  <link rel="stylesheet" type="text/css" href="almennt.css" />

  <title>prufa</title>
</head>

<body>
  <!-- logo -->
  <a name="top"></a> <!-- outer table border left side -->

  <table border="0" width="770" cellpadding="0" cellspacing="0"
  align="center">
    <tr>
      <td align="right" valign="top" width="5" height="100%" class=
      "leftside">
        <table border="0" class="lefttside" width="100%"
        cellpadding="0" cellspacing="0" align="center">
          <tr>
            <td align="right" valign="top"><img src=
            "images/misc/nav_ls.gif" alt="ls" /></td>
          </tr>

          <tr>
            <td align="right" class="leftside" height="100%">
            <img src="images/misc/page_ls.gif" alt="ls" /></td>
          </tr>
        </table>
      </td>

      <td align="center" valign="top">
        <table border="0" width="100%" cellpadding="0" cellspacing=
        "0" align="center">
          <tr>
            <td>
              <!-- /outer table border left side -->

              <table border="0" width="770" cellpadding="0"
              cellspacing="0" align="center">
                <tr>
                  <td align="left"><a href="index.php"><img src=
                  "images/misc/logo.gif" border="0" alt=
                  "Logo" /></a></td>

                  <td align="right" valign="top"><a href=
                  "index.php"><img src="images/misc/icon_home.gif"
                  border="0" alt="Home" /></a> <a href=
                  "sendmessage.php"><img src=
                  "images/misc/icon_contact.gif" border="0" alt=
                  "Contact" /></a> <a href="forum.php"><img src=
                  "images/misc/icon_sitemap.gif" border="0" alt=
                  "Site Map" /></a></td>
                </tr>
              </table>

              <table border="0" width="770" cellpadding="0"
              cellspacing="0" align="center" class="sitenav">
                <tr>
                  <td align="left">
                    <table border="0" cellpadding="0" cellspacing=
                    "0" align="left">
                      <tr>
                        <td><a href="index.php"><img src=
                        "images/misc/nav_heim.gif" border="0" alt=
                        "Heim" /></a></td>

                        <td><a href="myndir.php"><img src=
                        "images/misc/nav_members.gif" border="0"
                        alt="Myndir" /></a></td>

                        <td><a href="spjall/"><img src=
                        "images/misc/nav_calendar.gif" border="0"
                        alt="Spjall" /></a></td>

                        <td><a href="eg.php"><img src=
                        "images/misc/nav_eg.gif" border="0" alt=
                        "Eg" /></a></td>

                        <td><a href="samband.php"><img src=
                        "images/misc/nav_register.gif" border="0"
                        alt="Samband" /></a></td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table><!-- /logo -->

              <table border="0" width="770" cellpadding="0"
              cellspacing="0" align="center" class="pagebg">
                <tr>
                  <td><img src="images/gradients/page_bg.gif" alt=
                  "bg" /></td>
                </tr>
              </table>

              <div align="center">
                <div class="page" style=
                "width:100%; text-align:left">
                  <div style="padding:0px 25px 0px 25px" align=
                  "left"></div>

                  <div style="padding:0px 25px 0px 25px" align=
                  "left">
                    <?PHP
                     include("bok3/viewguestbook.php");
                    ?>

                    <div class="pagination">
                      <ul>
                        <li><a href="#" class=
                        "prevnext disablelink">«
                        Fyrri</a></li>

                        <li><a href="#" class=
                        "currentpage">1</a></li>

                        <li><a href="#">2</a></li>

                        <li><a href="#">3</a></li>

                        <li><a href="#">4</a></li>

                        <li><a href="#">5</a></li>

                        <li><a href="#">6</a></li>

                        <li><a href="#">7</a></li>

                        <li><a href="#">8</a></li>

                        <li><a href="#">9</a>...</li>

                        <li><a href="#">15</a></li>

                        <li><a href="#">16</a></li>

                        <li><a href="#" class=
                        "prevnext">Nćsta»</a></li>
                      </ul>
                    </div><br />
                  </div>
                </div>
              </div>

              <table cellpadding="6" cellspacing="0" border="0"
              width="100%" class="page" align="center">
                <tr>
                  <td class="tfoot" align="left" width="100%">
                    <div class="smallfont">
                      <strong><a href="samband.php">Samband</a> -
                      <a href=
                      "http://www.almennt.com/spjall">Spjall</a> -
                      <a href="archive/index.php">Linkur</a> -
                      <a href="#top" onclick=
                      "self.scrollTo(0, 0); return false;">Upp</a></strong>
                    </div>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>

      <td align="left" valign="top" width="5" height="100%" class=
      "rightside">
        <table border="0" class="rightside" width="100%"
        cellpadding="0" cellspacing="0" align="center">
          <tr>
            <td align="left" valign="top"><img src=
            "images/misc/nav_rs.gif" alt="rs" /></td>
          </tr>

          <tr>
            <td align="left" class="rightside" height="100%">
            <img src="images/misc/page_rs.gif" alt="rs" /></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</body>
</html>
pandy
I don't find the button. unsure.gif
ofi
mmm, it was not what i was looking for, so just skipped the button, i have solved this space above links now.

I cant spot how to fix this, i need to have output text in same line, how can i do that

CODE
<a href="http://www.almennt.com/ny_sida/count/click.php?id=1">Testing 3<p align="right">Hve oft sótt   <script language="Javascript">ccount_display('1')</script></p>


so outcome will be

CODE
Testing 3                                                                                            Hve oft sótt
pandy
I don't understand. Do you want it on one line or on three? You can't have P inside a link anyway.
ofi
Hi
i added this in table

CODE
<table width="100%" border="0">
  <tr>
    <td width="50%" align="left"><a href="http://www.almennt.com/ny_sida/count/click.php?id=1" />Testing 3</td>
    <td width="50%" align="right">Hve oft sótt  
  <script language="Javascript">ccount_display('1')</script></td>
  </tr>
</table>


outcome http://almennt.com/ny_sida/testing.php

is there any other way to get outcome without using table
pandy
You could float them left and right.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.