Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | | Re: [F] drop down smileys code (30th Dec 07 at 8:28pm UTC) | |  Code: - <div id="dropDown">
- <select name="ubbc">
- <option value="none">Select a Smiley </option>
- <option onclick="add_ubbc(' :)');" value="smile">Smile</option>
- <option onclick="add_ubbc(' ;)');" value="wink">Wink</option>
- <option onclick="add_ubbc(' ;D');" value="grin">Grin</option>
- <option onclick="add_ubbc(' 8-)');" value="Cool">Cool</option>
- </select>
- </div>
- <script type="text/javascript">
- <!--
-
- if(location.href.match(/\/post\//)){
- var getRow = document.getElementsByTagName("tr");
- for(x=0; x<getRow.length; x++){
- if(getRow[x].cells[0].innerHTML.match(/Smilies/i) && getRow[x].cells[0].width == '15%'){
- var drop = document.getElementById("ubbc")
- getRow[x].cells[1].replaceChild(drop, getRow[x].cells[1].firstChild);
- }
- }
- }
-
- //-->
- </script>
| |
|
BizzD Full Member
  
Posts: 306 Status: Offline Gender: Male Location: Washington Joined:
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! | |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | | Re: [F] drop down smileys code (30th Dec 07 at 8:32pm UTC) | | he made most of it if you didn't notice!
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
  
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!
He didn't remake it from scratch in three minutes; he just modified the already-finished one. | |
rroll.to— Shorten a link, rickroll your friends. |
|
Danny Full Member
  
![[Avatar]](http://h1.ripway.com/Schnooble/ff1969.png) Posts: 180 Status: Offline Gender: Male Location: Durham Age: 34 Joined:
pmmsnxfire | | Re: [F] drop down smileys code (30th Dec 07 at 8:43pm UTC) | | THANKS DUDE ! WRIGHTY | |
|
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | | Re: [F] drop down smileys code (30th Dec 07 at 8:43pm UTC) | | Glad it's finally finished!
| |
|
Danny Full Member
  
![[Avatar]](http://h1.ripway.com/Schnooble/ff1969.png) Posts: 180 Status: Offline Gender: Male Location: Durham Age: 34 Joined:
pmmsnxfire | | Re: [F] drop down smileys code (30th Dec 07 at 8:47pm UTC) | | now the drop down isnt showing up just a little input box
click | |
|
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | | 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
  
pmwww | | Re: [F] drop down smileys code (30th Dec 07 at 8:52pm UTC) | |  Code: - <div id="dropDown">
- <select name="ubbc">
- <option value="none">Select a Smiley </option>
- <option onclick="add_ubbc(' :)');" value="smile">Smile</option>
- <option onclick="add_ubbc(' ;)');" value="wink">Wink</option>
- <option onclick="add_ubbc(' ;D');" value="grin">Grin</option>
- <option onclick="add_ubbc(' 8-)');" value="Cool">Cool</option>
- </select>
- </div>
- <script type="text/javascript">
- <!--
-
- if(location.href.match(//post//)){
- var getRow = document.getElementsByTagName("tr");
- for(x=0; x<getRow.length; x++){
- if(getRow[x].cells[0].innerHTML.match(/Smilies/i) && getRow[x].cells[0].width == '15%'){
- var drop = document.getElementById("dropDown").getElementsByTagName("select")[0];
- getRow[x].cells[1].replaceChild(drop, getRow[x].cells[1].firstChild);
- }
- }
- }
-
- //-->
- </script>
Try that.
EDIT: Fine Wrighty, post a millisecond before me. >.< | |
rroll.to— Shorten a link, rickroll your friends. |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | | Re: [F] drop down smileys code (30th Dec 07 at 8:52pm UTC) | | or that cr0w! | |
|
Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | | Re: [F] drop down smileys code (30th Dec 07 at 8:53pm UTC) | | or that cr0w!
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. | |
rroll.to— Shorten a link, rickroll your friends. |
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | | Re: [F] drop down smileys code (30th Dec 07 at 8:54pm UTC) | | exactly! | |
|
Danny Full Member
  
![[Avatar]](http://h1.ripway.com/Schnooble/ff1969.png) Posts: 180 Status: Offline Gender: Male Location: Durham Age: 34 Joined:
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. | |
|
|
Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | | Re: [F] drop down smileys code (30th Dec 07 at 8:56pm UTC) | | | and my way? | |
|
Danny Full Member
  
![[Avatar]](http://h1.ripway.com/Schnooble/ff1969.png) Posts: 180 Status: Offline Gender: Male Location: Durham Age: 34 Joined:
pmmsnxfire | | Re: [F] drop down smileys code (30th Dec 07 at 8:57pm UTC) | | sorry your way just kepps it the same as it was. | |
|
|