Friday, March 29, 2013

Important links for Master Page in SharePoint 2010

http://chrisstahl.wordpress.com/2012/03/27/branding-the-quick-launch-in-sharepoint-2010-part-i/

http://chrisstahl.wordpress.com/2012/05/23/branding-the-quick-launch-in-sharepoint-2010-part-
ii/

https://www.nothingbutsharepoint.com/sites/eusp/Pages/Brand-SharePoint-Quicklaunch-Menu-
links-Backgrounds.aspx

https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-Learn-to-Brand-from-the-
Start.aspx





Master Pages in SharePoint 2010

The master pages SharePoint 2010 utilizes are features from ASP.NET 2.0. They provide the
ability to lay out the framework of a rendered page separate from the page containing the
content. While master page customizations were an essential feature in the previous version
of SharePoint as well, there have been many notable and important changes from 2007 to
2010.

Types of SharePoint 2010 Master Pages :

This section was largely derived from Quick Overview of Master Pages in SharePoint 2010
by Corey Roth

v4.master
Default team site master page. Provides ribbon bar and other UI changes.
Characteristics
Site actions are updated for 2010 and appear on left.
Ribbon bar is available

default.master
Sites upgraded from SharePoint 2007 use this unless they are changed to use a v4 version.
Characteristics
Site actions on right side and are same as SharePoint 2007 version
No ribbon bar.

minimal.master
Master page contains almost nothing. It is used by the Search Center and Office Web
Applications. This master should not be confused with minimal master pages from 2007
which were trimmed down custom master pages developed by users. The minimal.master
is now an out-of-the box master page. These trimmed-down custom master pages are
commonly referred to as Starter Master Pages in SharePoint 2010.

Characteristics of minimal.master
No navigation included

Starter Master Pages
Commonly referred to as “minimal master pages” in SharePoint 2007, these quick start
pages are created by developers to better enhance their ability to quickly create and
customize a functional master.

Sources for Starter Master Pages
Starter Master Pages for SharePoint 2010 by Randy Drisgrill

simple.master
This master is used by login and error pages. To customize these pages, a replacement
page must be created and stored in the _layouts directory on the server.

Pages using simple.master
Login.aspx
SignOut.aspx
Error.aspx
ReqAcc.aspx
Confirmation.aspx
WebDeleted.aspx
AccessDenied.aspx

Other Master Pages
Other miscellaneous master pages are generally not manipulated when branding a site.

These include:
application.master·
applicationv4.master·
dialog.master·
layouts.master·
layoutsv3.master·
pickerdialog.master·
rtedialog.master·
simple.master·
simplev4.master·
mwsdefault.master·
mwsdefaultv4.master·
admin.master·
popup.master

creating Slide Show Using Java Script and CEWP

<script language="javascript" type="text/javascript">
<div 

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = '/asrtech/images/smbox1.jpg'
Pic[1] = '/asrtech/images/smbox2.jpg'
Pic[2] = '/asrtech/images/smbox3.jpg'
Pic[3] = '/asrtech/images/smbox4.jpg'


// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()     
   }
   document.images.SlideShow.src = preLoad[j].src
   document.images.SlideShow.click = "http://www.google.com"
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

_spBodyOnLoadFunctionNames.push("runSlideShow");

</script>&#160;<!-- the Slide Show --><table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td width="300" height="300" id="VU"><img name="SlideShow" width="300" height="300" src="/Style%20Library/images/pic1.jpg" click="http://www.google.com" alt="" style="filter: blendtrans(duration=crossfadeduration)"/></td></tr></tbody></table>