w3future.com

Sjoerd Visscher's weblog - w3future.com

My ideas about new web technology that can change the future of the world wide web.

 Wednesday, January 16, 2002

Testing...

The sidebar on the left is now generated from an OPML file:

The script then generates this piece of javascript code:

weblogSidebar={
  'What I read':[
    {style:'button2', content:'Jake's Brainpan',
      gonew:'http://jake.editthispage.com/'}
    ,{style:'button2', content:'Joel on Software',
      gonew:'http://joel.editthispage.com/'}
    ,{style:'button2', content:'Lambda the Ultimate',
      gonew:'http://lambda.weblogs.com/'}
    ,{style:'button2', content:'markpasc_blog',
      gonew:'http://markpasc.org/blog/'}
    ,{style:'button2', content:'owrede_log',
      gonew:'http://owrede.khm.de/'}
    ,{style:'button2', content:'Scripting News',
      gonew:'http://www.scripting.com/'}
    ,{style:'button2', content:'XMLHack',
      gonew:'http://www.xmlhack.com/'}
    ,{style:'button2', content:'<b>All sources</b>',
      gonew:'http://w3future.com/html/weblogsources.html'}
  ]
  ,'Friends/Family':[
    {style:'button2', content:'Joeri',
      gonew:'http://joeri.mulder.com/'}
    ,{style:'button2', content:'Marco',
      gonew:'http://www.maggerydoo.net/'}
    ,{style:'button2', content:'Jelle',
      gonew:'http://uitdeschaduw.blogspot.com/'}
    ,{style:'button2', content:'Q42',
      gonew:'http://www.q42.nl/'}
  ]
};

The template contains a script that creates the buttons from the data. I named the opmlfile #sidebar.opml. The # means that files in subdirectories can have their own sidebar links, but they default to the one from the parent directory.


Last Update

1/23/2002; 11:40:12 AM

Weblog Archive

RSS link

Don't like the look of this site? Just get my data:

Updated with