954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Smilie Help

Im looking to have a page with icons at the top at the bottom have a box that when the icon is clicked the source of the image is viewed. Which can then be copied and used somewheres else on the page.

Basically whats being done here.

Ive spent the last 3 hours and cant figure it out. It wont allow me to view the "....

Kevnj
Newbie Poster
3 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

Well it most def aint PhP, I looked at their source and it looked like Javascripts to me. This CAN be done in PHP too dont get me wrong, by why go through the hasel?

This is what I saw in example fo Javascript that theyve used below:

<AREA SHAPE="rect" COORDS="2,2148,21,2168" ONCLICK="parent.document.smiley.smileytext.value=parent.document.smiley.smileytext.value+'<font sml=&#34;AgHSJnQ=&#34;>:-D</font>'" TARGET="" ALT="" />
<AREA SHAPE="rect" COORDS="21,2148,40,2168" ONCLICK="parent.document.smiley.smileytext.value=parent.document.smiley.smileytext.value+'<font sml=&#34;AgHSJnQ=&#34;>=-O</font>'" TARGET="" ALT="" />
<AREA SHAPE="rect" COORDS="40,2148,59,2168" ONCLICK="parent.document.smiley.smileytext.value=parent.document.smiley.smileytext.value+'<font sml=&#34;AgHSJnQ=&#34;>:-'+String.fromCharCode(42)+'</font>'" TARGET="" ALT="" />
<AREA SHAPE="rect" COORDS="59,2148,78,2168" ONCLICK="parent.document.smiley.smileytext.value=parent.document.smiley.smileytext.value+'<font sml=&#34;AgHSJnQ=&#34;>'+String.fromCharCode(62)+':o</font>'" TARGET="" ALT="" />
 <AREA SHAPE="rect" COORDS="78,2148,97,2168" ONCLICK="parent.document.smiley.smileytext.value=parent.document.smiley.smileytext.value+'<font sml=&#34;AgHSJnQ=&#34;>8-)</font>'" TARGET="" ALT="" />
<AREA SHAPE="rect" COORDS="97,2148,116,2168" ONCLICK="parent.document.smiley.smileytext.value=parent.document.smiley.smileytext.value+'<font sml=&#34;AgHSJnQ=&#34;>:-$</font>'" TARGET="" ALT="" />




That was alot I squeezed out, ouch!:eek::o

mikeSQL
Junior Poster
196 posts since Dec 2004
Reputation Points: 16
Solved Threads: 3
 

Thanks Ill be checking it out once I get home from work.

Basically I was missing ONCLICK="parent.document.smiley.smileytext.value=parent.document.smiley.smileytext.value+''+String.fromCharCode(62)+':o'" TARGET="" ALT="" />

The third set of parent.document.smiley.smileytext.value ??? and the + string.fromcharcode ?

Thanks

Kevnj
Newbie Poster
3 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

Sorry thought I put this in the javascript forum.

Any idea how to get it to work ?

Kevnj
Newbie Poster
3 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You