Results 1 to 3 of 3

Thread: Switch content script help

  1. #1
    Join Date
    Sep 2005
    Posts
    34
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Switch content script help

    1) Script Title: Switch content script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tchcontent.htm

    3) Describe problem: Hey, how would I make the [Open] and [Close] appear AFTER the expandable header?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Try finding the below line inside the .js file:

    Code:
    			this.headers[i].innerHTML='<span class="status"></span>'+this.headers[i].innerHTML //Add a span element to original HTML to store indicator
    and changing it to:

    Code:
    			this.headers[i].innerHTML=this.headers[i].innerHTML+'<span class="status"></span>' //Add a span element to original HTML to store indicator
    DD Admin

  3. #3
    Join Date
    Sep 2005
    Posts
    34
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    Try finding the below line inside the .js file:

    Code:
    			this.headers[i].innerHTML='<span class="status"></span>'+this.headers[i].innerHTML //Add a span element to original HTML to store indicator
    and changing it to:

    Code:
    			this.headers[i].innerHTML=this.headers[i].innerHTML+'<span class="status"></span>' //Add a span element to original HTML to store indicator
    Thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •