<!--
var mnu_active = false; // determines if a menu is active
var mnu_items = new Array(); // holds a collection of current active menus
var mnu_left = 0;
var mnu_right = 0;
var mnu_top = 0;
var mnu_bottom = 0;
var WinNum = 0; // init windows number
/* ----------------------------------------------------------- */
// Get browser information
/* ----------------------------------------------------------- */
var if_userAgent = navigator.userAgent.toLowerCase();
var opera = (if_userAgent.indexOf('opera') != -1); // is opera
var opera8 = ((if_userAgent.indexOf('opera 8') != -1 || if_userAgent.indexOf('opera/8') != -1) ? 1 : 0); // is opera8
var ns4 = (document.layers) ? true : false; // is netscape 4
var ie4 = (document.all && !document.getElementById) ? true : false; // is IE 4
var ie5 = (document.all && document.getElementById) ? true : false; // is IE 5+
var ns6 = (!document.all && document.getElementById) ? true : false; // is netscape 6
/* ----------------------------------------------------------- */
// Set-up document event handlers
/* ----------------------------------------------------------- */
if (ie4 || ie5 || opera) {
document.onclick = if_hideAllMenusOnClick;
document.onscroll = if_hideAllMenusOnClick;
window.onresize = if_winResize;
}
else if (ns6) {
document.addEventListener("mousedown", if_hideAllMenusOnClick, true);
window.addEventListener("onresize", if_winResize, true);
}
else if (ns4) {
document.onmousedown = if_hideAllMenusOnClick;
window.captureEvents(Event.MOUSEMOVE);
}
/* ----------------------------------------------------------- */
// Pre-load drop down menu images so they display correctly
/* ----------------------------------------------------------- */
function if_PreloadImages(CurrentSkin) {
if (document.images)
{
arImageList = new Array ();
var arImageSrc = new Array(CurrentSkin + "Images/Misc_Rating1.gif",
CurrentSkin + "Images/Misc_Rating2.gif",
CurrentSkin + "Images/Misc_Rating3.gif",
CurrentSkin + "Images/Misc_Rating4.gif",
CurrentSkin + "Images/Misc_Rating5.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Bold.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Bullets.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Center.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Fontcolor.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_FontcolorPrompt.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Grab.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Highlight.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_HighlightPrompt.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Indent.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_InsertImg.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Italics.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Justify.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Left.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Link.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_NumList.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Quote.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Right.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Sep.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Strike.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Subscript.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Superscript.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Toolsep.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Underline.gif",
CurrentSkin + "Images/RichTextBoxIcons/mnu_Unindent.gif",
CurrentSkin + "Images/RichTextBoxIcons/tab_Edit_Off.gif",
CurrentSkin + "Images/RichTextBoxIcons/tab_Edit_On.gif",
CurrentSkin + "Images/RichTextBoxIcons/tab_Html_Off.gif",
CurrentSkin + "Images/RichTextBoxIcons/tab_Html_On.gif");
for (counter in arImageSrc) {
arImageList[counter] = new Image();
arImageList[counter].src = arImageSrc[counter];
}
}
}
/* ----------------------------------------------------------- */
// Determine what object model we should use
/* ----------------------------------------------------------- */
function if_returnObjRef(objName) {
var objReturn = '';
if (ie5 || ns6 || opera)
{
objReturn = document.getElementById(objName);
}
else if (ie4)
{
objReturn = document.all[objName];
}
else if (ns4)
{
objReturn = document.layers[objName];
}
return objReturn
}
/* ----------------------------------------------------------- */
// Open Menu on MouseOver Event
/* ----------------------------------------------------------- */
function if_openMenuMouseOver(Caller, DivLayer, InnerHTML, Width) {
if (mnu_active) {if_openMenu(Caller, DivLayer, InnerHTML, Width);}
}
/* ----------------------------------------------------------- */
// Open Menu on MouseClick Event
/* ----------------------------------------------------------- */
function if_openMenu(Caller, DivLayer, InnerHTML, Width) {
// create unique identity for generated div layer
DivLayer = DivLayer + "_" + Caller
// create iframe to hold menu, this ensures we render over dropdownlists
var Iframe = DivLayer + "_Iframe"
// determine if we can create elements dynamically
if (!document.createElement) {return false;}
// check to see if item is already within active menu array if so just quit and return false
for (count = 0; count < mnu_items.length; count++) {
if (mnu_items[count] == DivLayer) {
return false;
}
}
// hide any menus that maybe open
if_hideAllMenus();
// add active menu to array and set active state to true
mnu_items[mnu_items.length] = DivLayer;
mnu_active = true;
// create the div layer container for this menu
if_setDiv(InnerHTML, DivLayer, Iframe, Width);
// get object references to div layer and div_layer that called this function
var div_layer = if_returnObjRef(DivLayer);
var div_layerIframe = if_returnObjRef(Iframe);
var div_layer_caller = if_returnObjRef(Caller);
// set default offset for div layer from the caller div
var offsetTopDefault; offsetTopDefault = div_layer_caller.offsetHeight + 4;
// position div layer relative to the opening link
var top = if_getAbsoluteOffsetTop(div_layer_caller) + offsetTopDefault;
var left = if_getAbsoluteOffsetLeft(div_layer_caller);
// set position of controls
div_layer.style.top = top;
div_layer.style.left = left;
div_layerIframe.style.top = top;
div_layerIframe.style.left = left;
// calculate left and top positions of current div layer
if (ie4 || ie5 || opera) {
mnu_left = div_layer.style.posLeft;
mnu_top = div_layer.style.posTop - offsetTopDefault;
} else if (ns6) {
mnu_left = if_removePX(div_layer.style.left);
mnu_top = if_removePX(div_layer.style.top);
}
// calculate right and bottom positions of current div layer
mnu_right = parseInt(mnu_left) + parseInt(mnu_extent.x);
mnu_bottom = parseInt(mnu_top) + parseInt(mnu_extent.y);
// now ensure Iframe sits tidy behind Div
div_layerIframe.style.height = (mnu_bottom - mnu_top);
// attempt to keep menu on screen
if (ie4 || ie5 || opera || ns6) {
win_width = document.body.clientWidth;
if (mnu_right > win_width) {
div_layer.style.left = win_width - Width - 10;
div_layerIframe.style.left = win_width - Width - 10;
}
}
// finally display the menu
// if this is not IE we don't need to display the Iframe
if ((ie4 || ie5 && !opera)) {div_layerIframe.style.display = "";}
div_layer.style.display = "";
}
/* ----------------------------------------------------------- */
// Create div layer to hold menu
/* ----------------------------------------------------------- */
function if_setDiv(Inn
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
ASP.NET网上商城完整源码 (166个子文件)
ucNotice.ascx 4KB
ucProList.ascx 4KB
Page_Header.ascx 2KB
Page_Footer.ascx 1KB
User_Register.aspx 18KB
User_Edit.aspx 13KB
product_add.aspx 13KB
Default.aspx 10KB
product_modify.aspx 8KB
shop_Default.aspx 8KB
productList.aspx 7KB
Order_info.aspx 7KB
DP_DianPuSet.aspx 6KB
shopList.aspx 6KB
product_display.aspx 5KB
Order_Detail.aspx 5KB
shop_display.aspx 5KB
info_frame.aspx 4KB
DP_kaidian.aspx 4KB
shop_manage.aspx 4KB
User_NewPassWord.aspx 4KB
DP_Check1.aspx 4KB
User_GetPassWord.aspx 4KB
DP_Check2.aspx 4KB
Product_buy.aspx 3KB
yidu.aspx 3KB
weidu.aspx 3KB
User_Login.aspx 3KB
fullType.aspx 3KB
DP_DianPuGongGao.aspx 3KB
SelectPT.aspx 3KB
new.aspx 2KB
islook.aspx 2KB
Shop_ManageShow.aspx 2KB
User_VMoney.aspx 833B
del.aspx 442B
showProductShopLogo.aspx 123B
showProductPicture.aspx 119B
ValidateCode.aspx 109B
User_Exit.aspx 101B
WebResource(1).axd 32KB
WebResource.axd 20KB
Web.config 2KB
product_modify.aspx.cs 9KB
DP_Check2.aspx.cs 9KB
DP_Check1.aspx.cs 9KB
Order_info.aspx.cs 8KB
product_add.aspx.cs 8KB
productList.aspx.cs 8KB
DP_DianPuSet.aspx.cs 6KB
shop_display.aspx.cs 6KB
shopList.aspx.cs 5KB
DP_kaidian.aspx.cs 5KB
product_display.aspx.cs 5KB
SelectPT.aspx.cs 4KB
yidu.aspx.cs 4KB
weidu.aspx.cs 4KB
User_Edit.aspx.cs 4KB
Product_buy.aspx.cs 4KB
ValidateCode.aspx.cs 3KB
User_Register.aspx.cs 3KB
Order_Detail.aspx.cs 3KB
DP_DianPuGongGao.aspx.cs 3KB
Default.aspx.cs 2KB
User_Login.aspx.cs 2KB
shop_manage.aspx.cs 2KB
fullType.aspx.cs 2KB
User_GetPassWord.aspx.cs 2KB
showProductPicture.aspx.cs 2KB
new.aspx.cs 2KB
Shop_ManageShow.aspx.cs 2KB
showProductShopLogo.aspx.cs 2KB
islook.aspx.cs 1KB
shop_Default.aspx.cs 1KB
User_VMoney.aspx.cs 1KB
ucProList.ascx.cs 1KB
User_NewPassWord.aspx.cs 1KB
DBConnection.cs 1KB
info_frame.aspx.cs 1024B
Page_Header.ascx.cs 942B
del.aspx.cs 857B
User_Login.cs 852B
User_Exit.aspx.cs 489B
Page_Footer.ascx.cs 419B
ucNotice.ascx.cs 416B
style.css 17KB
style1.css 10KB
style.css 3KB
Thumbs.db 127KB
Thumbs.db 20KB
Default_002.gif 25KB
Default_401.gif 24KB
guanggao_102.gif 20KB
shop_Default_403.gif 13KB
shop_Default_702.gif 11KB
shop_display_103.gif 9KB
fullType_103.gif 9KB
productList_304.gif 8KB
shop_Default.gif 7KB
复件 productList_304.gif 6KB
共 166 条
- 1
- 2
资源评论
- haozi93362020-06-30浪费积分,太旧太简单了
release他爹爹
- 粉丝: 26
- 资源: 534
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功