inherit
139188
0
Nov 19, 2022 9:06:24 GMT -8
Musayyub
88
April 2009
musayyub
|
Post by Musayyub on Jun 3, 2013 4:05:22 GMT -8
Is there any alternative to the script below that can be implemented in the v5 posting page. If yes please indicate on/after which line of the posting page should it go.
Thanks
<script type="text/javascript"> <!-- /* Drop Down Menu */
var smilie=["Good morning","Good afternoon","Good evening","Good day","Good night","Good luck","Have a nice day","You are welcome","kind regards"];
function aS(smilie){add(smilie);} var td=document.getElementsByTagName("td"); for(e=0;e<td.length;e++) if(document.postForm && td[e].width=="70%" && td[e].className=="windowbg2" && td[e].previousSibling.innerHTML.match(/Add Smilies/)){ var dropBox='<select onChange="aS(this.options[this.selectedIndex].value); this.selectedIndex=0;"><option value="">Islamic Phrases</option>'; for(j=0;j<smilie.length;j++) { dropBox+='<option value="'+smilie[j]+'">'+smilie[j]+'</option>'; } dropBox+='</select>'; td[e].innerHTML+=''+ dropBox; } //--> </script>
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Jun 3, 2013 23:18:14 GMT -8
|
|
inherit
139188
0
Nov 19, 2022 9:06:24 GMT -8
Musayyub
88
April 2009
musayyub
|
Post by Musayyub on Jun 9, 2013 20:58:21 GMT -8
Thanks for your response but I want it similar as the font face and font size drop down menu on the same row. If only that could be used in the global footer and the innerHTML.match be set to the exact location in the post form.
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Jun 9, 2013 21:44:08 GMT -8
|
|
inherit
139188
0
Nov 19, 2022 9:06:24 GMT -8
Musayyub
88
April 2009
musayyub
|
Post by Musayyub on Jun 10, 2013 0:13:43 GMT -8
No problem, thanks for your quick response. I'll submit my request to the plugin-in board later if what I'm actually trying with the switch-it plugin to meet my purpose doesn't work as I want it to be.
|
|