Danny Full Member
Posts: 180 Status: Offline Gender: Male Location: Durham Age: 33 Joined:
pmmsnxfire | Drop Down Smileys Code (30th Dec 07 at 9:33pm UTC) | | This puts all the smileys in a drop down list.
id like to say thanks to Wrighty and Cr0w for all the help they gave me trying to get this to work.
Global Header
Code: - <div id="dropDown" style="display: none;">
- <select id="smileys">
- <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>
- <option onclick="add_ubbc(' :P');" value="Tongue">Tongue</option>
- <option onclick="add_ubbc(' :(');" value="Sad">Sad</option>
- <option onclick="add_ubbc(' ::)');" value="Rolleyes">Rolleyes</option>
- <option onclick="add_ubbc(' :'(');" value="Cry">Cry</option>
- <option onclick="add_ubbc(' :-/');" value="Unsure">Unsure</option>
- <option onclick="add_ubbc(' ???');" value="Confused">Confused</option>
- <option onclick="add_ubbc(' >:(');" value="Angry">Angry</option>
- <option onclick="add_ubbc(' :O');" value="Shocked">Shocked</option>
- <option onclick="add_ubbc(' :-*');" value="Kiss">Kiss</option>
- <option onclick="add_ubbc(' :-x');" value="Lips Sealed">Lips Sealed</option>
- <option onclick="add_ubbc(' :-[');" value="Embarrassed">Embarrassed</option>
- <option onclick="add_ubbc(' :D');" value="Laugh">Laugh</option>
- </select>
- </div>
Global Footer
Code: - <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("smileys")
- getRow[x].cells[1].replaceChild(drop, getRow[x].cells[1].firstChild);
- }
- }
- }
-
- //-->
- </script>
| |
|
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Drop Down Smileys Code (30th Dec 07 at 9:54pm UTC) | | Can you hide the div that's holding the smilies? Otherwise it'll show up where it isn't needed! | |
|
Danny Full Member
Posts: 180 Status: Offline Gender: Male Location: Durham Age: 33 Joined:
pmmsnxfire | Re: Drop Down Smileys Code (30th Dec 07 at 9:55pm UTC) | | oh yeah I did that before but when I re- copied your code I forgot to redo it
| |
|
|