Smilie Help

Reply

Join Date: Jan 2005
Posts: 3
Reputation: Kevnj is an unknown quantity at this point 
Solved Threads: 0
Kevnj Kevnj is offline Offline
Newbie Poster

Smilie Help

 
0
  #1
Jan 12th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 196
Reputation: mikeSQL is an unknown quantity at this point 
Solved Threads: 3
mikeSQL's Avatar
mikeSQL mikeSQL is offline Offline
Junior Poster

Re: Smilie Help

 
0
  #2
Jan 12th, 2005
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
dynastyCODERS#1 when it comes to Programming Tutorials, Database designs and discussions, Operating Systems, you name it, check us out and drop us a line to tell us your opinions on any and everything in mind!;)
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 3
Reputation: Kevnj is an unknown quantity at this point 
Solved Threads: 0
Kevnj Kevnj is offline Offline
Newbie Poster

Re: Smilie Help

 
0
  #3
Jan 12th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 3
Reputation: Kevnj is an unknown quantity at this point 
Solved Threads: 0
Kevnj Kevnj is offline Offline
Newbie Poster

Re: Smilie Help

 
0
  #4
Jan 12th, 2005
Sorry thought I put this in the javascript forum.

Any idea how to get it to work ?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC