Pages: 1/237 First page 1 2 3 4 5 6 7 8 9 10 Next page Final page [ View by Articles | List ]

[Pinned] drupal视频教程分享 不指定

drupal水滴 , 2012/05/05 13:01 , drupal建站 » drupal7教程 , Comments(0) , Reads(566) , Via Original
我们将陆续推出drupal视频分享教程,默认格式为flv格式的文件,点击即可播放:
2012.5.10
drupal7视频教程-drupal区块
2012.5.9
drupal7视频教程-drupal_get_form调用
2012.5.8
drupal7视频教程-构建表单提交after_build
2012.5.5
drupal7视频教程-drupal菜单系统
drupal7视频教程-drupal表单定制

[Pinned] drupal的学习之旅 不指定

drupal水滴 , 2011/12/07 19:46 , drupal建站 » drupal案例 , Locked(0) , Reads(6648) , Via Original
Tags:

DIV 居中的绝好解决方法 不指定

drupal水滴 , 2012/05/19 00:20 , html , Comments(0) , Reads(36) , Via Original
现在进行WEB重构的时候,一般我们做DIV 居中是这样:

body{
margin:0px auto;
text-align:center;
}

但是在没申明下面这句解析方法的时候,页面就会出错.不能居中对齐!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

为此困扰了我几天.那么有的朋友就会说:你加上这句不就行了吗? 可是有时候页面并不能全部按上面规定的代码格式来编写,比如说要改多彩滚动条.
直到昨天,一个想法在我脑中闪了一下. 何不用JS来控制页面的边距?说干就干!
找了个页面.添加了下面的一小段代码.
<script language="javascript" type="text/javascript" src="function.js"></script>
function.js内容:

if(window.screen.width>800){document.write("<style type=\"text/css\">body{margin-left:"+(window.screen.width-800)/2+"px}</style>");}

保存,测试. 哈哈,换了几个分辨率都可以正常居中!至此试验成功.
总结一下:
主要是这句代码起的作用:
(window.screen.width-800)/2 //计算页面应该留出的边距数值.800为我的DIV宽度 + 滚动条宽度.实际应用改为你自己的大小.
补充一点:上面这段JS 必须放在你的最后一个CSS连接或</style>的后面.

参考:http://www2.flash8.net/teach/4446.htm
Tags:

drupal对文件的处理 不指定

drupal水滴 , 2012/05/18 23:38 , drupal建站 » drupal开发 , Comments(0) , Reads(38) , Via Original
http://drupal.org/documentation/modules/file

Adding a file field to a content type
Managing attachment display
Managing file locations and access
Accessing Private Files


PHP configuration
For file uploads to work, PHP must be configured properly. The following PHP configuration variables may need to be set or configured, in your PHP php.ini file, .htaccess file, or settings.php files.

file_uploads = On must be set to "On"
upload_max_filesize = 24M can't be larger than post_max_size
max_input_time = 300 small values may cause timeouts for large file uploads
memory_limit = 64M small values may cause out of memory errors for large file uploads
max_execution_time = 180 small values may cause timeouts for large file uploads
post_max_size = 24M limits the size of input submitted to the website (including attached files)
Tags:

drupal中对图片的处理 不指定

drupal水滴 , 2012/05/18 23:36 , drupal建站 » drupal开发 , Comments(0) , Reads(39) , Via Original
http://drupal.org/node/1256440

drupal中对图片的处理,列出部分目录:

Image module: Troubleshooting
Image derivative sizes
Attaching images to other nodes
Comparison of Image-handling modules
Comparison of Lightbox-type modules
Configuration of module Image Assist
Configuring Views_Galleria
Creating a FTP based Photo Sharing site
Creating image galleries
Flickr
IMCE: Image uploader and browser
Image Browser
Image galleries
Image gallery: pager with "prev - next" navigation for images
Image utility modules
Imagecache Profiles
Imagecache: dynamic image manipulation
Img package (abandoned): Easy way to display images in posts & comments
Integrating image_attach with your custom node type
Jcarousel block
Lightbox2
Mass import of image files
Upgrading Image Module from Drupal 5 to Drupal 6
Using IMG tags with image module
Slideshow Creator
Using Imagemagick with Image module
Views Gallery enhancements
Views tips and recipes for image module
YAGM: Yet Another Gallery Module
jCarousel Lite
Adding Images to your text
Cloudfront Installation
Configuration of Module Image
Customising Image Gallery Themes
Image processing
Tags:
Pages: 1/237 First page 1 2 3 4 5 6 7 8 9 10 Next page Final page [ View by Articles | List ]