Danny Full Member
  
![[Avatar]](http://h1.ripway.com/Schnooble/ff1969.png) Posts: 180 Status: Offline Gender: Male Location: Durham Age: 34 Joined:
pmmsnxfire | | [F] drop down smileys code (30th Dec 07 at 7:57pm UTC) | | for some reason instead of the drop down box showing up it says null.
 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("dropDown");
- getRow[x].cells[1].innerHTML = drop;
- }
- }
- }
-
- //-->
- </script>
-
-
- <div id="dropDown">
- <form action="#">
- <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>
- </form>
- </div>
| |
|
|
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: drop down smileys code (30th Dec 07 at 8:00pm UTC) | | Try this:
 Code: - <div id="dropDown">
- <form action="#">
- <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>
- </form>
- </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").innerHTML;
- getRow[x].cells[1].innerHTML = drop;
- }
- }
- }
-
- //-->
- </script>
| |
|
Danny Full Member
  
![[Avatar]](http://h1.ripway.com/Schnooble/ff1969.png) Posts: 180 Status: Offline Gender: Male Location: Durham Age: 34 Joined:
pmmsnxfire | | Re: drop down smileys code (30th Dec 07 at 8:03pm UTC) | | | now its showing [object HTMLDivElement] | |
|
|
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: drop down smileys code (30th Dec 07 at 8:03pm UTC) | | link to your forum?
I have tested it and it works... I'm using FF | |
|
Danny Full Member
  
![[Avatar]](http://h1.ripway.com/Schnooble/ff1969.png) Posts: 180 Status: Offline Gender: Male Location: Durham Age: 34 Joined:
pmmsnxfire | | Re: drop down smileys code (30th Dec 07 at 8:06pm UTC) | | ahh its working now thanks man, I hadnt copied it properly before. hanks alot man | |
|
|
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: drop down smileys code (30th Dec 07 at 8:07pm UTC) | | No worries! | |
|
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:13pm UTC) | | now when I make a post it says "Invalid Post Form Submitted"
you have any idea why this is man ? | |
|
|
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:15pm UTC) | | | are you clicking submit? | |
|
BizzD Full Member
  
Posts: 306 Status: Offline Gender: Male Location: Washington Joined:
pm | | Re: [F] drop down smileys code (30th Dec 07 at 8:15pm UTC) | | Now i know why Wrighty is a coding mod.... | |
|
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:16pm UTC) | | Now i know why Wrighty is a coding mod....
LMAO !
and yeah I am | |
|
|
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:16pm UTC) | | lolz and why might that be?
I have had a look and I doesn't get why... ;/ | |
|
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:19pm UTC) | | ah well il just try figure it out | |
|
|
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:23pm UTC) | | | Can we get a link to your forum? | |
rroll.to— Shorten a link, rickroll your friends. |
|
BizzD Full Member
  
Posts: 306 Status: Offline Gender: Male Location: Washington Joined:
pm | | Re: [F] drop down smileys code (30th Dec 07 at 8:23pm UTC) | | | Well, you can fix codes and arecode well while me i am most likely the opposite. I can do a few codes that most people know. | |
|
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:25pm UTC) | |  ah well il just try figure it out
gimme 2 mins! | |
|