在css中,如果定义
#idname {
cursor:hand;
}
在IE和Opera中,鼠标指针能变成手状,在FF中则不行.
而使用
#idname {
cursor:pointer;
}
定义,则三者显示都正常.
在css中,如果定义
#idname {
cursor:hand;
}
在IE和Opera中,鼠标指针能变成手状,在FF中则不行.
而使用
#idname {
cursor:pointer;
}
定义,则三者显示都正常.
制作图片的特效之一,百叶窗效果,只需将下面代码,粘贴于你的页面中,将img标签的名字和下面js中img的名字统一,你将看到多种图片翻转效果,但由于这种效果是基于滤镜做的,所以,只有ie支持,遗憾啊!
<script language=Javascript>
function setCo
()
{
if (document.all)
{
/*tupianrotator 是标签img中的name*/
/*Transition:是切换方式,共有24种之多*/
tupianrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);/*随机抽取一种方法*/
tupianrotator.filters.revealTrans.apply();
tupianrotator.filters.revealTrans.play();
}
}
</script>
可以添加"document.readyState=="complete""判断,例如:
<script type="text/javascript">
if (document.readyState=="complete")
{
insertFlash('logoflash', '{$path_to_theme}/flash/navi08.swf', 389,60); }
else
{
document.onreadystatechange = function()
{
if (document.readyState == "complete")
{
insertFlash('logoflash', '{$path_to_theme}/flash/navi08.swf', 389,60); }
}
}
</script>
但此方法在ff中无效,因为ff的document中没有readyState属性,那么可以用另一种解决办法, 在script中使用defer属性。意在页面加载完毕后再执行脚本,这样可以避免找不到对象的问题。defer不会考虑外部文件是否全部下载完,只会判当前页面是否全部加载完成。只是,有defer标签的代码块里不能写document.write方法,最终在引入脚本处改为:
<script type="text/javascript" language="javascript" defer="defer" src="../JS/common.js"></script>
IE,FF,Opera测试全部通过
document.readyState=="complete"这句的意思是等页面加载完之后,再调js.
这个问题困扰了我很久,终于解决了,这是高兴啊!
Calendar 2.0 for Drupal 6 entailed a complete rewrite in order work with Views 2. There are a lot of changes from earlier versions, so I strongly suggest you start with the default calendar view provided and add and edit it to get the results you want.
Create a new calendar by enabling the default calendar view and changing it to use whatever date you want in your calendar. You can create multiple calendars by cloning the default calendar view as many times as necessary.
The Date argument has an option to select one or more Views date fields to filter on, automatically adds them to the view, and then filters the view by the value of the selected field(s). This argument can be used on any view, not just calendar views.
Unlike previous versions of the Calendar module, there is just a single argument instead of year, month, and day arguments. The argument value will be YYYY-MM-DD for a day, YYYY-MM for a month, YYYY for a year, and YYYY-W99 for a week. There is a default option to set the argument to the current date when the argument is empty.
A calendar display creates calendar navigation and links to multiple displays for the year, month, day, or week views. The actual displays are created by attaching calendar views that use whatever styles are desired for those pages.
Calendar views are attachments (note 1) to create the year, month, day, and week displays. They can be set to use any style, either a calendar style or any other Views style, like teasers or lists. They can each have their own fields and formatting. They must be attached to the main calendar page or to a calendar block.
If you don't want to have a link to a week display, just remove the week display from the view. Ditto for any other displays you don't want to use. The links will automatically disappear for any displays that are not defined in the view.
A calendar block will create a calendar block for the view results. This block requires the calendar argument to do its work, and uses one of the year, month, day, or week calendar view attachments created above.
Earlier versions required that you add the date field to the 'Fields' section of the view, but this version does not require that. Add the field to the view if you want it displayed in the results, otherwise you can leave it out. The Calendar no longer over-writes normal formatting for that field, it will be displayed however you set it up in the view.
There are templates for the top of the calendar (the links and navigation), the year, month, day, and week displays, and the individual month, week, and day nodes, so you can easily style them.
模組介紹:
重新寄送註冊通知信給註冊過但從未登入的使用者。管理者可以設定第一次寄提醒信的時間、每封提醒信的寄送間隔,以及總共要寄幾封提醒信。管理者可以自訂信件的內容。
連結網址:
http://drupal.org/project/account_reminder