MyBB Community Forums

Full Version: Javascript help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need a little help......... So what's new Big Grin ???

Ok, I've gone blue in the face.... reading, testing and trying to get this to work... Rolleyes

Code:
$myfiles = "http://ozihumour.com/forums/images/pics";

I want to add the variable in this line so that it will echo the path in front of ('tsunami.gif'), but not display it.... and only display��tsunami.gif.... Which in turn is the actual code to display the picture (Much like :smile: etc) in a 'little project that I'm working on.

<td class="table1" align="center"><a href="javascript:add.picture ('tsunami.gif');"><img src="images/pics/tsunami.gif" border="0"></a></td>

So how do I include "$myfiles" to represent the 'path' in that line, without it being echoed as "$myfiles" or echoing the actual path ???

In other words... I can use ('[*img]http://ozihumour.....etc, etc[/*img]')

and it works fine. But it would be nice to be able to shorten it up..


Toungue

Anyone care to help with this ??

* added because it's NOT rendering the code wrappers all that well Sad

I found the problem.... html tags in the wrong place, where they should be php.