[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4284: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4286: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4287: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4288: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
www.dhtmlgoodies.com • View topic - sliding show/hide script - changing the bar onclick
Advertisement

sliding show/hide script - changing the bar onclick

Moderators: Calcifer, slothy

sliding show/hide script - changing the bar onclick

Postby azyure » Mon May 12, 2008 5:00 pm

Hi there,

I'm using the 'sliding show/hide script' - which is just fantastic - I just need to make it so that when i click the bar - and the content slides down - that the bar actually changes colour (basically set new styles).

Unfortunatly I'm only new to javascripting and I have a dreadfully tight deadline - is there anyone that can help or point me in the right direction?

Thanks for your time!

:)
Cassandra :shock:
azyure
 
Posts: 10
Joined: Mon May 12, 2008 4:52 pm
Location: London

Thanks heaps!

Postby azyure » Tue May 13, 2008 9:44 am

Hi Chris - thanks heaps for that it is exactally what I was looking for.

Did notice that it didn't change the background colour - back to it's origional - so I changed this little bit and it seems to have done the job!

}else{
this.className='dhtmlgoodies_question';
slideContent(numericId,(dhtmlgoodies_slideSpeed*-1));
dhtmlgoodies_activeId = false;
}

Thanks heaps for your help!
:)
Cass
azyure
 
Posts: 10
Joined: Mon May 12, 2008 4:52 pm
Location: London

another problem now!

Postby azyure » Tue May 13, 2008 10:58 am

azyure
 
Posts: 10
Joined: Mon May 12, 2008 4:52 pm
Location: London

omg im an idiot!

Postby azyure » Tue May 13, 2008 11:33 am

Hi Chris,
Sorry - I just re-copied your javascript code - and it works perfectly!

I'm testing in IE6/7/Firefox/Safari & Opera btw! :)

Can i bug you for a tiny bit more help - I'm actually trying to change two css styles (as I have two background images to change) - but can't seem to work out where to put it in!

Here is my page

Thanks so much for your help!
:)
Cass
azyure
 
Posts: 10
Joined: Mon May 12, 2008 4:52 pm
Location: London

Postby azyure » Tue May 13, 2008 11:59 am

doh!

unfortunatly this page has to be totally accessible - so we have to use the two images so that the text can get larger - without the background distorting and breaking the text.

The only way I have been able to get these to work is nesting a div within a div and making the images background images.

Though I did also get the same result by putting an actual image (<img src"") inside the table - would this be any easier - so then instead of changing a css style - we change the src path? (does that make sense)?

Cass
azyure
 
Posts: 10
Joined: Mon May 12, 2008 4:52 pm
Location: London

Postby azyure » Tue May 13, 2008 12:29 pm

azyure
 
Posts: 10
Joined: Mon May 12, 2008 4:52 pm
Location: London

Postby azyure » Tue May 13, 2008 12:46 pm

OMG! hahaha

thank you so much!

:)

*cheers*
azyure
 
Posts: 10
Joined: Mon May 12, 2008 4:52 pm
Location: London

opening the first instance

Postby azyure » Wed May 14, 2008 10:11 am

azyure
 
Posts: 10
Joined: Mon May 12, 2008 4:52 pm
Location: London

Postby azyure » Wed May 14, 2008 11:46 am

azyure
 
Posts: 10
Joined: Mon May 12, 2008 4:52 pm
Location: London

Postby azyure » Wed May 14, 2008 11:50 am

azyure
 
Posts: 10
Joined: Mon May 12, 2008 4:52 pm
Location: London

Next

Return to Questions regarding other scripts at www.dhtmlgoodies.com

Who is online

Users browsing this forum: No registered users and 8 guests

cron