Remove the 'Save' button from a SharePoint survey | EndUserSharePoint.com
Note there is an error in the script, the" needs to be replaced.
<script type="text/javascript">
if(typeof jQuery=="undefined"){
var jQPath="/javascripts/";
document.write("<script src='",jQPath,"jquery-1.3.2.min.js' type='text/javascript'><\/script>");
}
</script>
<script type="text/javascript">
$(function(){
$(":inputs[value='Save']").hide($);
});
</script>
Thursday, February 10, 2011
Monday, February 7, 2011
Allow Site Visitors To Change Font Sizes on your Blog
Working from this: Allow Site Visitors To Change Font Sizes on your Blog
I modified the tag it references to work better on SP 2007 pages. Paste the following into a CEWP.
<script language="JavaScript" type="text/javascript">
function changeFontSize(inc)
{
var p = document.getElementsByTagName('TD');
for(n=0; n<p.length; n++) {
if(p[n].style.fontSize) {
var size = parseInt(p[n].style.fontSize.replace("px", ""));
} else {
var size = 12;
}
p[n].style.fontSize = size+inc + 'px';
}
}
</script><div align=right>Adjust the screen font size:
<A href="javascript:changeFontSize(1)"><Font size=2>[+]</font></A> |
<A href="javascript:changeFontSize(-1)"><FONT size=2>[-]</FONT></A></div>
<script language="JavaScript" type="text/javascript">
function changeFontSize(inc)
{
var p = document.getElementsByTagName('TD');
for(n=0; n<p.length; n++) {
if(p[n].style.fontSize) {
var size = parseInt(p[n].style.fontSize.replace("px", ""));
} else {
var size = 12;
}
p[n].style.fontSize = size+inc + 'px';
}
}
</script><div align=right>Adjust the screen font size:
<A href="javascript:changeFontSize(1)"><Font size=2>[+]</font></A> |
<A href="javascript:changeFontSize(-1)"><FONT size=2>[-]</FONT></A></div>
Subscribe to:
Posts (Atom)