Java Script My Sites Widget


This widget enable easy code embedding for on-the-fly site consolidation.

Simply insert the following code into your html file:

<script type="text/javascript"
src="http://name.ly/wp-content/js/mysites/mysites.js">
</script>

<script type="text/javascript" >

var sample_my_sites = [
 [ 'http://brief.ly/', 'Brief.ly Home' ],
 [ 'http://name.ly/',  'Name.ly Home' ],
];

var sample_options = {
 'toc'    :    'off',
 'width'    :    '100%',
 'height'    :    '100%'
} ;

name_ly_build_my_sites_widget (
  sample_my_sites,
  sample_options );

</script>

In sample_my_sites you can have up to nine links with their captions and you can change the appearance of the widget by adjusting values in sample_options.

A sample file can be downloaded here (right mouse click on this link, save the target on your computer and adjust the code to your needs).

The following code will make use of all custom feautres and pull tabs from the top Delicious bookmarks:

<script type="text/javascript"
src="http://name.ly/wp-content/js/mysites/mysites.js">
</script>

<script type="text/javascript" >

var sample_my_sites = [
 [ 'http://brief.ly/', 'Brief.ly Home' ],
 [ 'http://name.ly/',  'Name.ly Home' ],
];

var sample_options = {
 'title'    :    'My Title',
 'description'    :    'My Description',
 'toc'    :    'off',
 'menu_background'    :    'ABC',
 'menu_tab_text'    :    'FDB',
 'menu_tab_background'    :    '888',
 'menu_tab_selected_text'    :    'ABCDEF',
 'menu_tab_selected_background'    :    '444444',
 'rss'    :    'http://delicious.com/',
 'rss_max_number_of_items'    :     6,
 'width'    :    '100%',
 'height'    :    '100%'
} ;

name_ly_build_my_sites_widget (
 sample_my_sites,
 sample_options );

</script>

Additional notes

Open all references in tabs: [1 – 4]


Short link: [Facebook] [Twitter] [Email] Copy - http://name.ly/~k4iS$9g