GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Can I get some code help here please? (https://gfy.com/showthread.php?t=834224)

aztecboi2003 06-11-2008 02:22 PM

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.

BigBen 06-11-2008 02:45 PM

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.

aztecboi2003 06-11-2008 02:58 PM

Quote:

Originally Posted by BigBen (Post 14306265)
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;

BigBen 06-11-2008 03:48 PM

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;

Tempest 06-11-2008 03:58 PM

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>

aztecboi2003 06-11-2008 04:01 PM

Thanks, that was exactly what I wanted. You rock.


All times are GMT -7. The time now is 12:33 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123