944,201 Members | Top Members by Rank

Ad:
Jan 12th, 2005
0

Smilie Help

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Kevnj is offline Offline
3 posts
since Jan 2005
Jan 12th, 2005
0

Re: Smilie Help

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:

HTML and CSS Syntax (Toggle Plain Text)
  1. <AREA SHAPE="rect" COORDS="2,2148,21,2168" ONCLICK="parent.document.smiley.smileytext.value=parent.document.smiley.smileytext.value+'<font sml="AgHSJnQ="> :-D</font> '" TARGET="" ALT="" />
  2. <AREA SHAPE="rect" COORDS="21,2148,40,2168" ONCLICK="parent.document.smiley.smileytext.value=parent.document.smiley.smileytext.value+'<font sml="AgHSJnQ="> =-O</font> '" TARGET="" ALT="" />
  3. <AREA SHAPE="rect" COORDS="40,2148,59,2168" ONCLICK="parent.document.smiley.smileytext.value=parent.document.smiley.smileytext.value+'<font sml="AgHSJnQ=">:-'+String.fromCharCode(42)+'</font>'" TARGET="" ALT="" />
  4. <AREA SHAPE="rect" COORDS="59,2148,78,2168" ONCLICK="parent.document.smiley.smileytext.value=parent.document.smiley.smileytext.value+'<font sml="AgHSJnQ="> '+String.fromCharCode(62)+':o</font> '" TARGET="" ALT="" />
  5. <AREA SHAPE="rect" COORDS="78,2148,97,2168" ONCLICK="parent.document.smiley.smileytext.value=parent.document.smiley.smileytext.value+'<font sml="AgHSJnQ="> 8-)</font> '" TARGET="" ALT="" />
  6. <AREA SHAPE="rect" COORDS="97,2148,116,2168" ONCLICK="parent.document.smiley.smileytext.value=parent.document.smiley.smileytext.value+'<font sml="AgHSJnQ=">:-$</font>'" TARGET="" ALT="" />

<COUGH> That was alot I squeezed out, ouch!:eek::o
Reputation Points: 16
Solved Threads: 3
Junior Poster
mikeSQL is offline Offline
196 posts
since Dec 2004
Jan 12th, 2005
0

Re: Smilie Help

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Kevnj is offline Offline
3 posts
since Jan 2005
Jan 12th, 2005
0

Re: Smilie Help

Sorry thought I put this in the javascript forum.

Any idea how to get it to work ?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Kevnj is offline Offline
3 posts
since Jan 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Table alignment okay in Firefox..bung in IE
Next Thread in HTML and CSS Forum Timeline: Exception error





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC