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 "<img src=".... "in the box. I would like the src tags to be included in the preview box so it can be copied to the clipboard.

What am I missing? :?:

Thanks in advance.

Recommended Answers

All 3 Replies

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="" />

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

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+'<font sml="AgHSJnQ=">'+String.fromCharCode(62)+':o</font>'" TARGET="" ALT="" />

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

Thanks

Sorry thought I put this in the javascript forum.

Any idea how to get it to work ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.