vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] drop down smileys code - View Topic (Page 2 of 3)Page: 1 2 3
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: [F] drop down smileys code (30th Dec 07 at 8:28pm UTC)
Code:
 
  1. <div id="dropDown">
  2. <select name="ubbc">
  3. <option value="none">Select a Smiley </option>
  4. <option onclick="add_ubbc(' :)');" value="smile">Smile</option>
  5. <option onclick="add_ubbc(' ;)');" value="wink">Wink</option>
  6. <option onclick="add_ubbc(' ;D');" value="grin">Grin</option>
  7. <option onclick="add_ubbc(' 8-)');" value="Cool">Cool</option>
  8. </select>
  9. </div>
  10. <script type="text/javascript">
  11. <!--
  12.  
  13. if(location.href.match(/\/post\//)){
  14. var getRow = document.getElementsByTagName("tr");
  15. for(x=0; x<getRow.length; x++){
  16. if(getRow[x].cells[0].innerHTML.match(/Smilies/i) && getRow[x].cells[0].width == '15%'){
  17. var drop = document.getElementById("ubbc")
  18. getRow[x].cells[1].replaceChild(drop, getRow[x].cells[1].firstChild);
  19. }
  20. }
  21. }
  22.  
  23. //-->
  24. </script>
 



{Cheesy}
BizzD
Full Member
***

Posts: 306
Status: Offline
Gender: Male
Location: Washington
Joined:  
Reputation: 0%  


pm
Re: [F] drop down smileys code (30th Dec 07 at 8:31pm UTC)
3 mins. to make that? It would take me at least a couple of hours for me! {Shocked}
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: [F] drop down smileys code (30th Dec 07 at 8:32pm UTC)
he made most of it if you didn't notice! {Tongue Out}

I changed 2 maybe 3 lines of it.
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: [F] drop down smileys code (30th Dec 07 at 8:32pm UTC)
 
3 mins. to make that? It would take me at least a couple of hours for me! {Shocked}


He didn't remake it from scratch in three minutes; he just modified the already-finished one. {Wink} {Tongue Out}

rroll.to— Shorten a link, rickroll your friends.
Danny
Full Member
***

[Avatar]

Posts: 180
Status: Offline
Gender: Male
Location: Durham
Age: 34
Joined:  
Reputation: 1%  


pmmsnxfire
Re: [F] drop down smileys code (30th Dec 07 at 8:43pm UTC)
THANKS DUDE ! WRIGHTY Smiley {Kiss} {Tongue Out}

Myspace | deviantART

"Suffer For Your Art"
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: [F] drop down smileys code (30th Dec 07 at 8:43pm UTC)
Glad it's finally finished!

{Grin}
Danny
Full Member
***

[Avatar]

Posts: 180
Status: Offline
Gender: Male
Location: Durham
Age: 34
Joined:  
Reputation: 1%  


pmmsnxfire
Re: [F] drop down smileys code (30th Dec 07 at 8:47pm UTC)
{Unsure} now the drop down isnt showing up just a little input box

click

Myspace | deviantART

"Suffer For Your Art"
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: [F] drop down smileys code (30th Dec 07 at 8:51pm UTC)
change:
<select name="ubbc">

to
<select id="ubbc">
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: [F] drop down smileys code (30th Dec 07 at 8:52pm UTC)
Code:
 
  1. <div id="dropDown">
  2. <select name="ubbc">
  3. <option value="none">Select a Smiley </option>
  4. <option onclick="add_ubbc(' :)');" value="smile">Smile</option>
  5. <option onclick="add_ubbc(' ;)');" value="wink">Wink</option>
  6. <option onclick="add_ubbc(' ;D');" value="grin">Grin</option>
  7. <option onclick="add_ubbc(' 8-)');" value="Cool">Cool</option>
  8. </select>
  9. </div>
  10. <script type="text/javascript">
  11. <!--
  12.  
  13. if(location.href.match(//post//)){
  14. var getRow = document.getElementsByTagName("tr");
  15. for(x=0; x<getRow.length; x++){
  16. if(getRow[x].cells[0].innerHTML.match(/Smilies/i) && getRow[x].cells[0].width == '15%'){
  17. var drop = document.getElementById("dropDown").getElementsByTagName("select")[0];
  18. getRow[x].cells[1].replaceChild(drop, getRow[x].cells[1].firstChild);
  19. }
  20. }
  21. }
  22.  
  23. //-->
  24. </script>
 


Try that. {Smile}

EDIT: Fine Wrighty, post a millisecond before me. >.< {Tongue Out}

rroll.to— Shorten a link, rickroll your friends.
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: [F] drop down smileys code (30th Dec 07 at 8:52pm UTC)
or that cr0w! {Tongue Out}
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: [F] drop down smileys code (30th Dec 07 at 8:53pm UTC)
 
or that cr0w! {Tongue Out}


Your way will run quicker; mine has to find the div, then return the dropdown in an array before grabbing the info from it; yours just directly grabs the dropdown. {Wink}

rroll.to— Shorten a link, rickroll your friends.
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: [F] drop down smileys code (30th Dec 07 at 8:54pm UTC)
exactly! {Tongue Out} {Grin}
Danny
Full Member
***

[Avatar]

Posts: 180
Status: Offline
Gender: Male
Location: Durham
Age: 34
Joined:  
Reputation: 1%  


pmmsnxfire
Re: [F] drop down smileys code (30th Dec 07 at 8:55pm UTC)
crows code brings back the drop down box but it says "Invalid Post Form Submitted" again.

Myspace | deviantART

"Suffer For Your Art"
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: [F] drop down smileys code (30th Dec 07 at 8:56pm UTC)
and my way?
Danny
Full Member
***

[Avatar]

Posts: 180
Status: Offline
Gender: Male
Location: Durham
Age: 34
Joined:  
Reputation: 1%  


pmmsnxfire
Re: [F] drop down smileys code (30th Dec 07 at 8:57pm UTC)
sorry {Tongue Out} your way just kepps it the same as it was.

Myspace | deviantART

"Suffer For Your Art"
 Printable View
Page: 1 2 3

All times are GMT+0 :: The current time is 1:23am
Page generated in 0.3736 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums