存档: ‘前端开发’ 分类

eWebEditor在IE8,IE7下所有按钮无效之解决办法

没有评论 2010年12月2日

下面将错误的原因和方法总结道这里,备忘。 

错误的原因是因为ie8屏蔽了anonymous方法 所以要改成onclick方法,打开include下面的editor.js文件,有这样的段代码(大概在166所在的函数中):

if (element.YUSERONCLICK) eval(element.YUSERONCLICK + ”anonymous()”);  

把那个anonymous方法改成onclick就可以了。
问题是解决了,结果发现把那个方法改成onclick之后在ie6下面就不管用了 ,解决方法:

if(navigator.appVersion.match(/MSIE (7|8)\./i)!=null){   

   if (element.YUSERONCLICK) eval(element.YUSERONCLICK + ”onclick(event)”);    

}else{   

  if (element.YUSERONCLICK) eval(element.YUSERONCLICK + ”anonymous()”);   

}

Free Full Layered Facebook GUI PSD 免费 Facebook PSD模板

4 条评论 2010年7月24日

In this post we release a free Facebook GUI PSD Kit, designed by SurgeWorks and released for Smashing Magazine and its readers. The main idea behind the kit is to speed up the prototyping of Facebook application UIs and Facebook fan pages, thus sparing you from drawing all the comps and letting you customize all the texts, buttons and data as you need. As usual, the kit is free to use in all projects, without any restrictions.

Release in Free Full Layered Facebook GUI PSD Kit

The kit brings the Facebook vector icon and logo. Also, since the focus of this resource are the UI elements, it brings a main window with the header, menu and the chat window for you to set up your realistic mock-ups. Plus all the modal components, comment boxes, buttons, message boxes, tabs, etc. All the components are full layered, built using vectors and blending options, so that scaling and editing the objects will not be a problem. 继续阅读…

js判断样式className和增加class删除class的通用代码

没有评论 2010年7月6日

发布一个js判断样式className和增加class删除class的通用代码,部分代码参考prototype.js

<HTML>  
<HEAD>  
<TITLE>testClassName</TITLE>  
</HEAD>  

<BODY>  
<p>&nbsp;</p>
<div id=”cc”></div>
<script type=”text/javascript”>
function BrowserCompatible () {}

BrowserCompatible.hasClassName = function(element, className)
{
    if (!element) return;
    var elementClassName = element.className;
    if (elementClassName.length == 0) return false;
    //用正则表达式判断多个class之间是否存在真正的class(前后空格的处理)
    if (elementClassName == className || elementClassName.match(new RegExp(“(^|\\s)” + className + “(\\s|$)”)))
      return true;
    return false;
}
继续阅读…

欧美企业html网页模板[Themeforest] ColorFolio HTML Template

1条评论 2009年12月18日

[Themeforest] ColorFolio HTML Template

ColorFolio
演示地址:http://themeforest.net/item/colorfolio/full_screen_preview/51456

ColorFolio is nice, colorful portfolio template made for designers or photographers.

继续阅读…

6个下拉的css导航菜单:6 Dropdown Navigation CSS Menus

1条评论 2009年12月16日

6 Dropdown Navigation CSS Menus

6 Dropdown Navigation CSS Menus | 1.7 MB
继续阅读…

WordPress 商业主题插件4合1Themeforest: Octofirst Business Portfolio WordPress 4 in 1

1条评论 2009年12月14日

Themeforest: Octofirst Business Portfolio WordPress 4 in 1

* easy to customize
* theme options panel with color picker included
* custom write panels
* drop down menus 继续阅读…

2009年8月最新flash as3.0基础教程Foundation ActionScript 3 for Flash and Flex

没有评论 2009年11月29日

Foundation ActionScript 3 for Flash and Flex

Darren Richardson “Foundation ActionScript 3 for Flash and Flex (With Source Code)”
August 2009 | English | ISBN-13: 978-1-4302-1918-7 | 607 Pages | PDF | 38.3 MB

继续阅读…

紫色光感 商业wordpress主题(4色系):Glow – ElegantThemes Premium WordPress Theme

3 条评论 2009年11月24日

Glow - ElegantThemes Premium WordPress Theme

With its bright colors, bold text and flashy design, Glow is a great theme for anyone looking to make an impact. This theme comes with four color variations, and is equipped with the latest ePanel Theme Options page which gives you complete control over your blog.

凭借其鲜艳的色彩,大胆的文字和花哨的设计,是一款不可多得的wordpress主题。这个主题有四色的选项,并与最新的ePanel主题选项页结合对您的博客完全管理.
演示:demo:http://www.elegantthemes.com/gallery/glow/(具体介绍页)
http://www.elegantthemes.com/preview/Glow/(效果演示页)
继续阅读…

黑白灰时尚流行的商业wordpress主题:WooThemes Premium WordPress Theme

1条评论 2009年11月18日

Headlines - WooThemes Premium WordPress Theme


Headlines continues where our old magazine themes left off. It has tons of requested features like featured area, social bookmarks, author highlighting, flexible layout to name a few. It’s the perfect platform to launch your magazine or blog and reach out to the world! 继续阅读…

简洁漂亮的商业wordpress主题: Themeforest Simplified [FULL] WordPress Theme

没有评论 2009年11月16日

Themeforest Simplified [FULL] WordPress

Clean and appealing Portfolio/Corporate Worpress Theme.
- Widget ready
- JQuery Stepcarousel homepage slider – enable/disable option from Theme Options custom page
- JQuery Lightbox
- Jquery Form
- Working Ajax based contact form
- Live form email validation
- Valid XHTML /CSS
- Clean, commented code.

继续阅读…