Can I get some code help here please?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aztecboi2003
    Confirmed User
    • Aug 2006
    • 1155

    #1

    Can I get some code help here please?

    Code:
    <td><input readonly="readonly" class="input_field" onclick="javascript:highlight(this);" type="text" style="width: 605px" name="option" value="&lt;a href=&quot;<# BASE_URL #>&quot;&gt;&lt;img src=&quot;<# BASE_URL #><# UPLOAD_PATH #><# FILENAME #>&quot; border=&quot;0&quot; alt=&quot;<# SITE_NAME #>&quot; /&gt;&lt;/a&gt;" /></td>
    Currently it's displaying this:
    <a href="http://www.justnico.com/"><img src="http://www.justnico.com/images/x7p3tgq7az7o6ha8m2b.gif" border="0" alt="Justnico" /></a>

    I need only this:
    <img src="http://www.justnico.com/images/x7p3tgq7az7o6ha8m2b.gif" border="0" alt="Justnico" /></a>

    What part do I remove to get only the link to the file. Thanks.
    Smoking Girl Fetish
    Petite Ashley
  • BigBen
    Confirmed User
    • Nov 2004
    • 2299

    #2
    You say you only need the img tag, but then you say you only want the link to the file... which one do you want? Edit the "value" attribute to do display what you want.

    Comment

    • aztecboi2003
      Confirmed User
      • Aug 2006
      • 1155

      #3
      Originally posted by BigBen
      You say you only need the img tag, but then you say you only want the link to the file... which one do you want? Edit the "value" attribute to do display what you want.
      What I mean is I want this:
      <img src="http://www.justnico.com/images/x7p3tgq7az7o6ha8m2b.gif" border="0" alt="Justnico" /></a>

      And not this:
      <a href="http://www.justnico.com/"><img src="http://www.justnico.com/images/x7p3tgq7az7o6ha8m2b.gif" border="0" alt="Justnico" /></a>
      I need to not have this part displayed: <a href="http://www.justnico.com/">

      By editing the value do you mean just deleting this part: a href=&quot;
      Smoking Girl Fetish
      Petite Ashley

      Comment

      • BigBen
        Confirmed User
        • Nov 2004
        • 2299

        #4
        It's in a text input box, so it's going to display whatever you have in the 'value' attribute. eg...

        value="everything here will be in text box"

        So delete this: &lt;a href=&quot;<# BASE_URL #>&quot;&gt;

        If you want to remove closing anchor tag too, delete this: &lt;/a&gt;

        Comment

        • Tempest
          Too lazy to set a custom title
          • May 2004
          • 10217

          #5
          Code:
          <td><input readonly="readonly" class="input_field" onclick="javascript:highlight(this);" type="text" style="width: 605px" name="option" value="&lt;img src=&quot;<# BASE_URL #><# UPLOAD_PATH #><# FILENAME #>&quot; border=&quot;0&quot; alt=&quot;<# SITE_NAME #>&quot; /&gt;&lt;/a&gt;" /></td>

          Comment

          • aztecboi2003
            Confirmed User
            • Aug 2006
            • 1155

            #6
            Thanks, that was exactly what I wanted. You rock.
            Smoking Girl Fetish
            Petite Ashley

            Comment

            Working...