Showing posts with label tricks. Show all posts
Showing posts with label tricks. Show all posts

Friday, February 8, 2013

How to Change your Site Name in Google Sites

Security and Privacy:  
Copyright guidelines
How to copyright & protect your blog content?
http://stackoverflow.com/questions/10130143/gpl-lgpl-and-static-linking 
Erase Your Online Identity in 10 Steps  
How to remove your Google Web History?  
http://www.modernsaver.com/hide-google-profile

Looks like there is no way one can change the url of a site
though there is an option to change the name of the site.
One way to change the name from sites.google.com/site/oldname to
sites.google.com/site/newname would be by first creating a copy of
your site with the newname and then deleting the site with the oldname
Both these options - of creating a copy (which is what you should do first)
and of deleting the site with the oldname can be done by...
>> logging into your site
>> clicking on 'More actions'
>> clicking on 'General' under 'Site settings'
In 'site settings' first click on 'Copy this Site' and create a copy of your
site with the newname that you want.
Check the new site
Login back to your site with the oldname and navigate to 'General'
under 'Site settings' and click on 'Delete this Site
You now have changed the sites.google.com/site/newurl of your site

Wednesday, February 6, 2013

Expandable List in HTML

<!DOCTYPE html>
<html>
<head>
<title>Expandable List Example</title>

<script type="text/javascript" src="http://www.dynamicdrive.com/dynamicindex1/simpletreemenu.js">

/***********************************************
* Simple Tree Menu- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

<link rel="stylesheet" type="text/css" href="http://www.dynamicdrive.com/dynamicindex1/simpletree.css" />

</head>

<body>

<h4>Simple Tree Menu #1 (persist enabled):</h4>

<a href="javascript:ddtreemenu.flatten('treemenu1', 'expand')">Expand All</a> | <a href="javascript:ddtreemenu.flatten('treemenu1', 'contact')">Contact All</a>

<ul id="treemenu1" class="treeview">
<li>Item 1</li>
<li>Item 2</li>

<li>Folder 1
    <ul>
    <li>Sub Item 1.1</li>
    <li>Sub Item 1.2</li>
    </ul>
</li>
<li>Item 3</li>

<li>Folder 2
    <ul>
    <li>Sub Item 2.1</li>
    <li>Folder 2.1
        <ul>
        <li>Sub Item 2.1.1</li>
        <li>Sub Item 2.1.2</li>
        </ul>
    </li>
</ul>
</li>

<li>Item 4</li>
</ul>

<h4>Simple Tree Menu #2 (Folder 1.1 open by default):</h4>

<a href="javascript:ddtreemenu.flatten('treemenu2', 'expand')">Expand All</a> | <a href="javascript:ddtreemenu.flatten('treemenu2', 'contact')">Contact All</a>

<ul id="treemenu2" class="treeview">
<li>Item 1</li>

<li>Folder 1
    <ul>
    <li>Sub Item 1.1</li>
    <li>Folder 1.1
        <ul rel="open">
        <li>Sub Item 1.1.1</li>
        <li>Sub Item 1.1.2</li>
        <li>Folder 1.1.1
            <ul>
            <li>Sub item 1.1.1.1</li>
            <li>Sub item 1.1.1.2</li>
            <li>Sub item 1.1.1.3</li>
            <li>Sub item 1.1.1.4</li>
            </ul>
        </li>
        </ul>
    </li>
    </ul>
</li>

<li>Item 2</li>
</ul>

<script type="text/javascript">

//ddtreemenu.createTree(treeid, enablepersist, opt_persist_in_days (default is 1))

ddtreemenu.createTree("treemenu1", true)
ddtreemenu.createTree("treemenu2", false)

</script>

</body>

</html>


Save this content in a file as sample.html and open in web browser.