vForums Support Banner



 

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

[Avatar]

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


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. {Unsure}

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

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: drop down smileys code (30th Dec 07 at 8:00pm UTC)
Try this:

Code:
 
  1. <div id="dropDown">
  2. <form action="#">
  3. <select name="ubbc">
  4. <option value="none">Select a Smiley </option>
  5. <option onclick="add_ubbc(' :)');" value="smile">Smile</option>
  6. <option onclick="add_ubbc(' ;)');" value="wink">Wink</option>
  7. <option onclick="add_ubbc(' ;D');" value="grin">Grin</option>
  8. <option onclick="add_ubbc(' 8-)');" value="Cool">Cool</option>
  9. </select>
  10. </form>
  11. </div>
  12. <script type="text/javascript">
  13. <!--
  14.  
  15. if(location.href.match(/\/post\//)){
  16. var getRow = document.getElementsByTagName("tr");
  17. for(x=0; x<getRow.length; x++){
  18. if(getRow[x].cells[0].innerHTML.match(/Smilies/i) && getRow[x].cells[0].width == '15%'){
  19. var drop = document.getElementById("dropDown").innerHTML;
  20. getRow[x].cells[1].innerHTML = drop;
  21. }
  22. }
  23. }
  24.  
  25. //-->
  26. </script>
 
Danny
Full Member
***

[Avatar]

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


pmmsnxfire
Re: drop down smileys code (30th Dec 07 at 8:03pm UTC)
now its showing [object HTMLDivElement]

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: 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]

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


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 {Cheesy}

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: drop down smileys code (30th Dec 07 at 8:07pm UTC)
No worries! {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:13pm UTC)
now when I make a post it says "Invalid Post Form Submitted"

you have any idea why this is man ?

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:15pm UTC)
are you clicking submit?
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:15pm UTC)
Now i know why Wrighty is a coding mod.... {Cool}
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:16pm UTC)
 
Now i know why Wrighty is a coding mod.... {Cool}


LMAO !

and yeah I am {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:16pm UTC)
lolz and why might that be?

I have had a look and I doesn't get why... ;/
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:19pm UTC)
{Unsure} ah well il just try figure it out {Tongue Out}

Myspace | deviantART

"Suffer For Your Art"
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: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:  
Reputation: 0%  


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]
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:25pm UTC)
 
{Unsure} ah well il just try figure it out {Tongue Out}



gimme 2 mins! {Smile}
 Printable View
Page: 1 2 3

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