Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Paste Description for Miscellany

finally maybe? i hope?

Miscellany
Thursday, May 10th, 2007 at 4:09:21pm MDT 

  1. // the vbs
  2.  
  3.  
  4.  
  5. sub changeStateClass(thechange)
  6.        
  7.         dim rootobj document.getElementsByTagName("*")
  8.         dim inc=0
  9.         dim tempinc=0
  10.         dim rootlength = rootobj.length
  11.         for i=1 to rootlength
  12.                 if rootobj(i).className == thechange then tempinc++
  13.         next
  14.  
  15.         dim ElementByClass(tempinc)
  16.         for i=1 to rootlength
  17.                 if rootobj(i).className==the change then
  18.                      ElementByClass(inc)=rootobj(i)
  19.                      inc++
  20.                 end if
  21.         next
  22.  
  23.  
  24.        
  25.         inc = 0
  26.        
  27.         do while ElementByClass(inc)
  28.                 if ElementByClass(inc).style.display == "none" then
  29.                      ElementByClass(inc).style.display = ''
  30.                 else
  31.                      ElementByClass(inc).style.display = "none"
  32.                 end if
  33.                 inc++;
  34.         loop
  35. end sub

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right