Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Modifying an onclick link
01-10-2007, 01:27 AM #1
- Join Date
- Jan 2007
- Thanked 0 Times in 0 Posts
Modifying an onclick link
$output .= "<a href=# onclick=\"document.getElementById('$insert_location').contentWindow.document.execCommand('InsertImage', false, '$config_http_script_dir/data/emoticons/$smile.gif' + 'alt=$smile'); return false;\"><img src=\"$config_http_script_dir/data/emoticons/$smile.gif\" style=\"border: none;\" alt=\"$smile\"></a>";
I was messing around with it, trying to get it to work and I added " + 'alt=$smile' " which gives me this when I click it:
I hope that all of this makes sense...and thanks in advance. (:
01-12-2007, 06:18 AM #2
Where you have
emoticons/$smile.gif' + 'alt=$smile'); return false;
there is nothing between smile.gif and alt. You don't need to break apart the two strings. you could try ....smile.gif \"alt=.....
Psychedelic digital art at www.trippertreats.com.
"And in the end, the love you take
is equal to the love you make."