Академический Документы
Профессиональный Документы
Культура Документы
<html> <body>
<form id=aspnetForm>
<div class=dv_Logo>
<a href=home.aspx>
<li class=AspNet-Menu-Leaf>
<a class=AspNet-Menu-Link>
<a class=AspNet-Menu-Link>
<ul>
<li class=AspNet-Menu-Leaf>
<a class=AspNet-Menu-Link>
<div class=div_top_sec>
<table class=tblTop>
<td>
<div id=ct100> This is the div where your actual content lives.
<table id=tbl_left_cont_right
<td class=div_left_sec
<div class=div_left_sec
<div class=vertical_menu
<div class=AspNet-MenuVertical>
<ul class=AspNet-Menu>
<li class=AspNet-MenuLeaf>
<td class=div_content_sec
<div class=div_content_sec>
If this is a regular ICM page, this is
where your first textboxs content lives.
<div class=main_content>
This div will only appear on pages
that have generated content
(SelectTermDept.aspx, contact.aspx,
etc) This is where the generated
content lives.
<td class=div_right_sec
<div class=div_right_sec
<div class=vertical_menu
<div class=AspNet-MenuVertical>
<ul class=AspNet-Menu>
<li class=AspNet-MenuLeaf>
<a class=AspNet-MenuLink>
<a class=AspNet-MenuLink>
<li class=AspNet-MenuWithChildren>
<li class=AspNet-MenuWithChildren>
<ul>
<ul>
<li class=AspNet-MenuLeaf>
<li class=AspNet-MenuLeaf>
<a class=AspNetMenu-Link>
<div id=ct100>
If this is a regular ICM page, this is
where your second textboxs content
lives.
<div class=div_bottom_sec>
<table class=tblBottom>
<td>
<div id=ct100> This is the div where your actual content lives.
<div class=div_footer_sec>
<div class=div_privacy>
<a class=AspNetMenu-Link>
Helpful Links
CSS3 Generator
Generator for various CSS3 effects.
Code snippets from CSS-Tricks
Features lots of snippets of HTML, CSS, Javascript and jQuery for cool effects and functionality. Updated frequently.
Can I Use
Compatibility tables for support of HTML5, CSS3, SVG and more in desktop and mobile browsers
CSS-Conditional comments
An explanation of how to use conditional comments to fix bugs in IE
Easy Slider 1.7
Simple slideshow from an unordered list. Allows for front/back buttons or numbered slides, slides go right to left only
(no transitions)
jQuery Cycle Plugin
Slideshow that allows for fades, zooms, and shuffles.
Nivo Slider
Slider that features 16 different transition effects and simple markup
Smooth Div Scroll
jQuery NailThumb
A jQuery plugin that automatically crops images to a certain size, without messing up their aspect ratio
Facebook feed integration
ICM Modifications
This section contains tips and tricks specifically for the unpublished, ICM site.
REMEMBER: Always add extra test pages at the beginning of setting up a new site
(before adding any modules to all) since the modules are only added to all existing
pages!
If you want certain content only visible in ICM
Add this to a text module, or add the style part to the stylesheet, and make sure to add the .iCMOnly class to any
elements you want to hide after publishing.
<style>
.aspnetForm .iCMOnly{
display: none;
}
</style>
<span class="iCMOnly">This module contains scripts needed for your page. Please do
not remove. This message will only display in iCM and will not publish.</span>
To move the Edit Text link to right under the Menu button
Add this to the stylesheet
div.module {
position: relative;
}
div.LinkNormal {
position: absolute;
top: 3px;
right: 20px;
}
Cart Modifications
Remember to add a mini cart module somewhere on the page!
display: none;
position: absolute;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-color: black;
z-index:1001;
-moz-opacity: 0.8;
opacity:.80;
filter: alpha(opacity=80);
}
.white_content {
display: none;
position: absolute;
top: 25%;
left: 25%;
width: 500px;
border: 3px solid #FF0101;
background-color: #F7F7F7;
z-index:1002;
}
.white_content div{
margin-bottom: 5px;
}
#shoppingheader{
background-color: #F4D2D2;
color: #000;
height: 50px;
font-size: 20pt;
font-weight: bold;
text-shadow: 1px 1px 2px #666666;
padding: 10px 0 0 10px;
border-bottom: 1px solid #000;
position: relative;
}
#cartinfo {
color: #000
font-weight: bold;
font-size: 14pt;
padding: 10px 0 0 10px;
}
#cartinfo a {
color: blue;
font-weight: bold;
font-size: 12pt;
text-decoration: none;
}
#cartinfo a:hover {
color: red;
}
#cartinfo span {
color: red;
}
#checkout {
width: 100px;
background-image: url(#) ;
background-repeat: no-repeat;
background-position: 0px 0px;
text-align: right;
}
#closebox {
position: absolute;
right: -10px;
top: -10px;
cursor: pointer;
}
</style>
Menu modifications
Add text to a sub-menu:
<script>
$(document).ready(function(){
$('a.AspNet-Menu-Link:contains("LINK TEXT")').siblings().append('<li class="AspNetMenu-Leaf"><a>TEXT TO ADD </a></li>');
});
</script>
MerchList pages
Hide the back button on the Merchlist.aspx page
For any stores that hide breadcrumbs so that customers can't get to the /merchandise.aspx page, you should also hide
the "Back" button on the Merchlist.aspx page, because that always links the user back to the /merchandise.aspx page.
This script removes that Back button. (Everyone has a back button on their browser anyway, so this link is basically
unneeded.)
<script>
$(document).ready(function() {
$('input[value="Back"]').hide();
});
</script>
Textbook pages
Must click agree to continue to course materials
Some stores want their students to agree to their pricing or return policy before being able to view their books. Add
this to the SelectTermDept page to add a checkbox that is required to be checked before students can proceed.
<!This is the span that contains the link for terms and conditions. Remember to
change the href of the link to point to the right page-->
<span id="termagree">
<input type="checkbox" tabindex="0" name="checkme" value="on" id="checkme" />
<label for="checkme">
<span>I have read and agree with the <a target="_blank" href="#">Terms &
Conditions.</a></span></label>
</span>
<script>
function adoCheckbox() {
// Begin by disabling the submission button //
$('input.btnGetCourseMaterials').attr('disabled','disabled');
// Insert our agreement text and checkbox //
$('#termagree').css('float', 'left').appendTo('td.selectCol2');
// Checkbox events //
$('input#checkme').click(function() {
if($('input#checkme:checked').length) {
// The agreement box is checked, so enable submit button //
$('input[value="Get Course Materials"]').removeAttr('disabled');
} else {
// The agreement box has been unchecked, so disable submit again //
$('input[value="Get Course Materials"]').attr('disabled','disabled');
}
});
}
function pageLoad() {
adoCheckbox();
$('input.btnGetCourseMaterials').live('click', function() {
adoCheckbox();
});
}
$('input.btnGetCourseMaterials').live('click', function() {
adoCheckbox();
});
</script>