Reply
Toggle displayed content
Old 11-16-2008, 06:41 PM Toggle displayed content
Registered User

Posts: 78
Name: Joseph
Location: Texas
Trades: 0
I was looking at some stuff on google and they have these cool links that when you click them it opens up more content and pushses text underneath it down.

I looked at their coding and css and put together this but it didnt work. any ideas how?

HTML Code:
<html>
<head>
<title>Hello</title>
<style type="text/css">

  .zippy_content {
    display: block;
  }

/* Known Issues */
.known_issues_table th {
  font-weight: normal;
}

a.expand{
  background: url('http://www.google.com/images/zippy_minus_sm.gif') no-repeat 0 0;
  padding-left: 20px;
}
a.collapse{
  background: url('http://www.google.com/images/zippy_plus_sm.gif') no-repeat 0 0;
  padding-left: 20px;
}

a.expand h3, a.collapse h3 {
  display: inline;
  text-decoration: none;
}




</style>
</head>
<body>
<p><a href="javascript:toggleLayer('sc1');toggleZippy('a1')" id="a1" class="collapse"><strong>Current Known Issues</strong></a></p>
<div style="display:none" id="sc1">
<p>
<p>Issue: The Advanced Reporting feature to "Show data by targeting type - contextual or placement" currently returns aggregate results, instead of results by targeting type.</p>
<p>Update: Our engineers are aware of the issue and are working to resolve it as quickly as possible.</p>
</div>

</body>
</html>
josephcohen is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 11-16-2008, 07:46 PM Re: Toggle displayed content
Experienced Talker

Posts: 41
Name: Jabis Sevon
Location: Tampere, Finland
Trades: 0
You're missing the javascript part entirely, that's what's wrong

For this kind of javascript issues, you'd be best to check out some of the ajax frameworks listed on the JavaScript forum stickies. There you'll find a lot of stuff related to JavaScript animation etc.
__________________
www.pumppumedia.com | www.tuhma.fi

Last edited by jabis; 11-16-2008 at 07:49 PM.. Reason: added a resource to look into
jabis is offline
Reply With Quote
View Public Profile Visit jabis's homepage!
 
Old 11-20-2008, 08:31 AM Re: Toggle displayed content
Skilled Talker

Posts: 52
Name: Morten
Trades: 0
Well as jabis said,

you need the whole javascript part *GG*

Well you could also check this website out:
http://javascript.internet.com/

They have a lot of great stuff, put if you have to build it your self follow jabis link.
__________________
- Do Nothing!
- Get Nothing!
http://www.dworl.com
Rotco88 is offline
Reply With Quote
View Public Profile
 
Old 11-20-2008, 04:05 PM Re: Toggle displayed content
Experienced Talker

Posts: 32
Trades: 0
Speaking of framework, one of the most popular out there is jQuery and there's a nice plugin for achieving this effect
__________________
xhtmlme.com Professional PSD to XHTML coding services
tsiger is offline
Reply With Quote
View Public Profile
 
Old 11-20-2008, 09:36 PM Re: Toggle displayed content
Novice Talker

Posts: 6
Trades: 0
Quote:
Originally Posted by jabis View Post
You're missing the javascript part entirely, that's what's wrong

For this kind of javascript issues, you'd be best to check out some of the ajax frameworks listed on the JavaScript forum stickies. There you'll find a lot of stuff related to JavaScript animation etc.
Thanks for the information. I to came accross this and had trouble getting it to work.. I put it aside for a while bc I was quite busy at the time. It's good to know what I was doing wrong! Looks like it's time to pull out the old project again!
tmnoncain is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Toggle displayed content
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.11774 seconds with 13 queries