object.filters.alpha.opacity不是对象的错误

huangxiukui 2009-06-15 07:44:51
这个项目中用到iframe,
在本地的resin(win2003 resin-3.1.2)上测试都没问题
但传到服务器上(linux resin-3.0.23)上就报
'bject.filters.alpha.opacity’不是对象的错误
试过添加filter:alpha
问题依旧
我想应该不是IE6的问题
因为在本地测试也是用的IE6
都正常
但是到了服务器就不行


<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>asdsad</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<LINK href="../css/layout.css" type=text/css rel=stylesheet>
<LINK href="../css/global.css" type=text/css rel=stylesheet>
<script>
function movstar(a,time){
movx=setInterval("mov("+a+")",time)
}
function movover(){
clearInterval(movx)
}
function mov(a){
scrollx=new_date.document.body.scrollLeft
scrolly=new_date.document.body.scrollTop
scrolly=scrolly+a
new_date.window.scroll(scrollx,scrolly)
}
function o_down(theobject){
object=theobject
while(object.filters.alpha.opacity>60){
object.filters.alpha.opacity+=-10}
}
function o_up(theobject){
object=theobject
while(object.filters.alpha.opacity<100){
object.filters.alpha.opacity+=10}
}
function wback(){
if(new_date.history.length==0){window.history.back()}
else{new_date.history.back()}
}
</script>
</head>
<body style="margin-top:0px; background-color:#3A3635">
<DIV id=fgz_home_page>
<DIV id=fgz_details_body>
<DIV class=fgz_details_body_1> </DIV>
<DIV class=fgz_details_body_2></DIV>
<DIV class=fgz_details_body_3>
<!-- 内容输出区-->
<iframe border=0 frameborder=0 framespacing=0 height=482px marginheight=0 marginwidth=0 name=new_date noResize scrolling=no src="<%=basePath%>servlet/FindContat" width=487px vspale="0" style="filter:alpha(opacity=80)">
</iframe>
</DIV>
<DIV class=fgz_details_body_4 style="width:485px; height:95px; background-color:#FFFFFF">
<!-- 向上翻内容按钮 -->
<div style="float:left; padding-left:208px">
<img alt=点住不放可以快速向上滚动 class=opacity onMouseDown=movover();movstar(-3,2) onMouseOut=movover();o_up(this) onMouseOver=movstar(-1,20);o_down(this) onMouseUp=movover();movstar(-1,20) src="../images/details/index_r2_c4.png" width="28" height="26" border="0" style="cursor:hand">
</div>
<div style="float:left">
<img name="index_r2_c5" src="../images/details/index_r2_c5.png" width="9" height="95" border="0" id="index_r2_c5" alt="" />
</div>
<!-- 向下翻内容按钮 -->
<div style="float:left">
<img class="opacity" onMouseDown=movover();movstar(3,2) onMouseOut=movover();o_up(this) onMouseOver=movstar(1,20);o_down(this) onMouseUp=movover();movstar(1,20) alt="点住不放可以快速向下滚动" src="../images/details/index_r2_c6.png" width="24" height="26" border="0" style="cursor:hand">
</div>
</DIV>
<DIV id=fgz_home_menu>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1003" height="174">
<param name="movie" value="../images/flash/menu.swf" />
<param name="quality" value="high" />
<embed src="../images/flash/menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1003" height="174"></embed>
</object>
</DIV>
</DIV>
</DIV>
</body>
</html>
...全文
172 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
huangxiukui 2009-06-16
  • 打赏
  • 举报
回复
怎么没人解答呢....?
昨天晚上试过在本地的LINUX下的RESIN3.0.23跑
也没问题
但到了服务器上就不能用了
DWR也是
到了服务器上就用不了
xue08161981 2009-06-15
  • 打赏
  • 举报
回复
先抢个沙发!
中文名: 阿呆系列Photoshop CS6 原名: Photoshop CS6 For Dummies 作者: Peter Bauer图书分类: 软件 资源格式: PDF 版本: 文字版 出版社: John Wiley & Sons, Inc.书号: 978-1-118-22706-0发行时间: 2012年6月6日 地区: 美国 语言: 英文 简介: 内容介绍: Adobe Photoshop is one of the most important computer programs of our age. It’s made photo editing a commonplace thing, something for the everyperson. Still, Photoshop can be a scary thing (especially that first purchase price!), comprising a jungle of menus and panels and tools and options and shortcuts as well as a bewildering array of add-ons and plug-ins. And that’s why you’re holding this book in your hands. And why I wrote it. And why John Wiley & Sons published it. You want to make sense of Photoshop — or, at the very least, be able to work competently and efficiently in the program, accomplishing those tasks that need to get done. You want a reference that discusses how things work and what things do, not in a technogeek or encyclopedic manner, but rather as an experienced friend might explain something to you. Although step-by-step explanations are okay if they show how something works, you don’t need rote recipes that don’t apply to the work you do. You don’t mind discovering tricks, as long as they can be applied to your images and artwork in a productive, meaningful manner. You’re in the right place! About This Book This is a For Dummies book, and as such, it was produced with an eye toward you and your needs. From Day One, the goal has been to put into your hands the book that makes Photoshop understandable and useable. You won’t find a technical explanation of every option for every tool in every situation, but rather a concise explanation of those parts of Photoshop you’re most likely to need. If you happen to be a medical researcher working toward a cure for cancer, your Photoshop requirements might be substantially more specific than what you’ll find covered here. But for the overwhelming majority of the people who have access to Adobe Photoshop, this book provides the background needed to get your work done with Photoshop. As I updated this book, I intentionally tried to strike a balance between the types of images with which you’re most likely to work and those visually stimulating (yet far less common) images of unusual subjects from faraway places. At no point in this book does flavor override foundation. When you need to see a practical example, that’s what I show you. I worked to ensure that each piece of artwork illustrates a technique and does so in a meaningful, nondistracting way for you. You’ll see that I used mostly Apple computers in producing this book. That’s simply a matter of choice and convenience. You’ll also see (if you look closely) that I shoot mostly with Canon cameras and use Epson printers. That doesn’t mean that you shouldn’t shoot with Nikon, or that you shouldn’tprint with HP or Canon. If that’s what you have, if it’s what you’re comfortable with, and if it fulfills your needs, stick with it! You’ll also find that I mention Wacom drawing tablets here and there (and devoted one of the final chapters to the subject). Does that mean you should have one? If you do any work that relies on precise cursor movement (like painting, dodging, burning, path creation and editing, cloning, healing, patching, or lassoing, just to name a few), yes, I do recommend a Wacom Cintiq display or Intuos tablet. Next to more RAM and good color management, it’s the best investment just about any Photoshop user can make. One additional note: If you’re brand new to digital imaging and computers, this probably isn’t the best place to start. I do indeed make certain assumptions about your level of computer knowledge (and, to a lesser degree, your knowledge of digital imaging). But if you know your File➪Open from your File➪Close and can find your lens cap with both hands, read Chapter 1, and you’ll have no problem with Photoshop CS6 For Dummies. 本书来自:Photoshop CS6 For Dummies 更多书籍请到:http://www.fordummiespdf.com/ 内容截图: 目录: Table of Contents Introduction.................................................................. 1 About This Book...............................................................................................1 How This Book Is Organized...........................................................................2 Part I: Breezing through Basic Training...............................................2 Part II: Easy Enhancements for Digital Images....................................2 Part III: Creating “Art” in Photoshop....................................................3 Part IV: Power Photoshop.....................................................................3 Part V: The Part of Tens.........................................................................3 Conventions Used in This Book......................................................................4 Icons Used in This Book..................................................................................4 How to Use This Book......................................................................................5 Where to Go from Here....................................................................................5 Part I: Breezing through Basic Training.......................... 7 Chapter 1: Welcome to Photoshop! . 9 Exploring Adobe Photoshop...........................................................................9 What Photoshop is designed to do....................................................10 New features to help you do those jobs............................................10 Other things you can do with Photoshop.........................................13 Viewing Photoshop’s Parts and Processes.................................................15 Reviewing basic computer operations...............................................15 Photoshop’s incredible selective Undo.............................................17 Installing Photoshop: Need to know..................................................19 Chapter 2: Knowing Just Enough about Digital Images . 21 What Exactly Is a Digital Image?...................................................................22 The True Nature of Pixels..............................................................................22 How Many Pixels Can Dance on the Head of a Pin?...................................24 Resolution revelations.........................................................................25 Resolving image resolution.................................................................26 File Formats: Which Do You Need?..............................................................35 Formats for digital photos...................................................................35 Formats for web graphics....................................................................37 Formats for commercial printing........................................................38 Formats for PowerPoint and Word.....................................................39Chapter 3: Taking the Chef’s Tour of Your Photoshop Kitchen . 41 Food for Thought: How Things Work...........................................................42 Ordering from the menus....................................................................42 Your platter full of panels....................................................................43 The tools of your trade........................................................................46 Get Cookin’ with Customization...................................................................47 Clearing the table: Custom workspaces............................................48 Sugar and spice, shortcuts are nice...................................................50 Spoons can’t chop: Creating tool presets..........................................51 Season to Taste: The Photoshop Settings...................................................52 Standing orders: Setting the Preferences..........................................53 Ensuring consistency: Color Settings.................................................60 When Good Programs Go Bad: Fixing Photoshop......................................61 Chapter 4: Getting Images into and out of Photoshop 63 Bringing Images into Photoshop..................................................................64 Downloading from your digital camera.............................................65 Scanning prints.....................................................................................67 Keeping Your Images Organized..................................................................71 Creating a folder structure..................................................................71 Using Adobe Bridge..............................................................................72 Renaming image files easily.................................................................74 Printing Your Images......................................................................................75 Cropping to a specific aspect ratio.....................................................76 Remembering resolution.....................................................................78 Controlling color using File➪Print.....................................................79 Considering color management solutions.........................................81 Printing alternatives.............................................................................82 Sharing Your Images......................................................................................83 Creating PDFs and websites................................................................83 E-mailing your images..........................................................................84 Part II: Easy Enhancements for Digital Images.............. 85 Chapter 5: Adding Dark Shadows and Sparkling Highlights 87 Adjusting Tonality to Make Your Images Pop.............................................88 Histograms Simplified....................................................................................88 Using Photoshop’s Auto Corrections...........................................................92 Levels and Curves and You...........................................................................93 Level-headed you!.................................................................................95 Tonal corrections with the eyedroppers...........................................97 Adjusting your curves without dieting..............................................98Grabbing Even More Control......................................................................101 Using Shadow/Highlight.....................................................................102 Changing exposure after the fact......................................................105 Using Photoshop’s toning tools........................................................105 Chapter 6: Making Color Look Natural 107 What Is Color in Photoshop?......................................................................107 Color modes, models, and depths....................................................108 Recording color in your image..........................................................114 Making Color Adjustments in Photoshop..................................................114 Watching the Histogram and Info panels.........................................116 Choosing color adjustment commands...........................................116 Manual corrections in individual channels.....................................131 The People Factor: Flesh Tone Formulas..................................................132 Chapter 7: The Adobe Camera Raw 7 Plug-In 135 Understanding the Raw Facts.....................................................................135 What’s the big deal about Raw?........................................................137 Working in Raw...................................................................................138 Do You Have What It Takes?.......................................................................139 Working in the Camera Raw Plug-In...........................................................140 Tools and preview options................................................................140 The histogram.....................................................................................146 The preview area................................................................................147 Workflow Options and presets.........................................................148 The Basic panel...................................................................................150 The Detail panel..................................................................................153 HSL, grayscale, and split toning........................................................155 Compensating with Lens Corrections..............................................157 Adding special effects........................................................................158 Camera profiles, presets, and snapshots........................................159 The Camera Raw buttons..................................................................159 Chapter 8: Fine-Tuning Your Fixes . 161 What Is a Selection?......................................................................................162 Feathering and Anti-Aliasing.......................................................................164 Making Your Selections with Tools............................................................166 Marquee selection tools.....................................................................166 Lasso selection tools..........................................................................169 The Quick Selection tool....................................................................171 The Magic Wand tool.........................................................................172 Refine Edge..........................................................................................172 Your Selection Commands..........................................................................174 The primary selection commands....................................................175 The Color Range command...............................................................176 Selection modification commands...................................................177 Transforming the shape of selections..............................................178 Edit in Quick Mask mode...................................................................179 The mask-related selection commands...........................................180 Masks: Not Just for Halloween Anymore...................................................181 Saving and loading selections...........................................................181 Editing an alpha channel....................................................................182 Adding masks to layers and Smart Objects.....................................183 Masking with vector paths................................................................184 Adjustment Layers: Controlling Changes..................................................184 Adding an adjustment layer..............................................................185 Limiting your adjustments.................................................................186 Chapter 9: Common Problems and Their Cures . 189 Making People Prettier................................................................................190 Getting the red out . . . digitally........................................................190 The digital fountain of youth.............................................................191 Dieting digitally...................................................................................192 De-glaring glasses...............................................................................194 Whitening teeth...................................................................................194 Reducing Noise in Your Images..................................................................194 Decreasing digital noise.....................................................................195 Eliminating luminance noise.............................................................195 Fooling Around with Mother Nature..........................................................196 Removing the unwanted from photos..............................................196 Eliminating the lean: Fixing perspective..........................................200 Rotating images precisely..................................................................202 Part III: Creating “Art” in Photoshop.......................... 203 Chapter 10: Combining Images . 205 Compositing Images: 1 + 1 = 1.....................................................................205 Understanding layers.........................................................................206 Why you should use Smart Objects.................................................207 Using the basic blending modes.......................................................208 Opacity, transparency, and layer masks.........................................211 Creating clipping groups....................................................................212 Making composited elements look natural.....................................213Making Complex Selections.........................................................................214 Vanishing Point.............................................................................................216 Creating Panoramas with Photomerge......................................................220 Chapter 11: Precision Edges with Vector Paths 221 Pixels, Paths, and You..................................................................................222 Easy Vectors: Using Shapes........................................................................223 Your basic shape tools.......................................................................224 The Custom Shape tool......................................................................226 More custom shapes — free!.............................................................226 Changing the appearance of a shape...............................................228 Simulating a multicolor shape layer.................................................229 Using Your Pen Tool to Create Paths.........................................................231 Understanding paths..........................................................................231 Clicking and dragging your way down the path of knowledge.....232 A closer look at the Paths panel.......................................................234 Customizing Any Path..................................................................................238 Adding, deleting, and moving anchor points..................................238 Combining paths.................................................................................240 Tweaking type for a custom font......................................................241 Chapter 12: Dressing Up Images with Layer Styles 243 What Are Layer Styles?................................................................................243 Using the Styles Panel..................................................................................245 Creating Custom Layer Styles.....................................................................247 Exploring the Layer Style menu........................................................247 Exploring the Layer Style dialog box................................................248 Layer effects basics............................................................................250 Opacity, fill, and advanced blending................................................258 Saving Your Layer Styles.............................................................................261 Adding styles to the Style panel.......................................................261 Preserving your layer styles..............................................................262 Chapter 13: Giving Your Images a Text Message 263 Making a Word Worth a Thousand Pixels.................................................264 A type tool for every season, or reason...........................................266 What are all those options?...............................................................267 Taking control of your text with panels...........................................270 The panel menus — even more options..........................................274 Working with Styles............................................................................276 Putting a picture in your text............................................................277 Creating Paragraphs with Type Containers..............................................278 Selecting alignment or justification..................................................281 Ready, BREAK! Hyphenating your text............................................282Shaping Up Your Language with Warp Text and Type on a Path..........283 Applying the predefined warps.........................................................283 Customizing the course with paths..................................................284 Chapter 14: Painting in Photoshop . 287 Discovering Photoshop’s Painting Tools..................................................288 Painting with the Brush tool..............................................................290 Adding color with the Pencil tool.....................................................292 Removing color with the Eraser tool...............................................292 Working with Panels and Selecting Colors................................................293 An overview of options......................................................................293 Creating and saving custom brush tips...........................................296 Picking a color.....................................................................................297 Integrating Your iPad into Your Painting Workflow.................................299 Expressing yourself with PS Express...............................................299 Using Adobe Nav.................................................................................300 Getting colorful with Color Lava.......................................................301 Easing your way into Eazel................................................................302 Connecting with Photoshop..............................................................302 Fine Art Painting with Specialty Brush Tips and the Mixer Brush.........303 Exploring erodible brush tips...........................................................303 Introducing airbrush and watercolor tips.......................................304 Mixing things up with the Mixer Brush............................................305 Filling, Stroking, Dumping, and Blending Colors......................................307 Deleting and dumping to add color..................................................307 Using gradients...................................................................................308 Chapter 15: Filters: The Fun Side of Photoshop . 311 Smart Filters: Your Creative Insurance Policy..........................................311 The Filters You Really Need........................................................................313 Sharpening to focus the eye..............................................................313 Unsharp Mask......................................................................................314 Smart Sharpen.....................................................................................315 Blurring images and selections.........................................................316 The other Blur filters..........................................................................318 Correcting for the vagaries of lenses...............................................320 Cleaning up with Reduce Noise........................................................323 Getting Creative and Artistic.......................................................................324 Photo to painting with the Oil Paint filter........................................325 Working with the Filter Gallery.........................................................326 Push, Pull, and Twist with Liquify..............................................................328 Do I Need Those Other Filters?...................................................................330 Adding drama with Lighting Effects.................................................331 Bending and bubbling........................................................................331 Creating clouds...................................................................................332Part IV: Power Photoshop........................................... 333 Chapter 16: Streamlining Your Work in Photoshop 335 Ready, Set, Action!........................................................................................336 Recording your own Actions.............................................................337 Working with the Batch command...................................................341 Creating contact sheets and presentations.....................................343 Sticking to the Script....................................................................................343 Adding Extensions to Photoshop...............................................................345 Tooling around in Bridge.............................................................................346 Creating Fancy PDF Presentations and Multi-Page PDFs.........................348 Creating a PDF presentation..............................................................348 Collecting thumbnails in a contact sheet........................................351 Saving paper with picture packages.................................................353 Creating Web Galleries................................................................................353 Chapter 17: Working with Video and Animation . 357 Importing and Enhancing Video Clips.......................................................357 Getting video into Photoshop...........................................................358 Adjusting the length of video and audio clips................................360 Adding adjustment layers and painting on video layers...............361 Transitioning, titling, and adding special effects............................362 Transforming video layers.................................................................365 Rendering and exporting video.........................................................365 Creating Animations in Photoshop............................................................366 Building frame-based animations.....................................................366 Creating frame content......................................................................367 Tweening to create intermediary frames........................................368 Specifying frame rate..........................................................................369 Optimizing and saving your animation............................................370 Part V: The Part of Tens............................................. 371 Chapter 18: Ten (or so) Things to Do with Photoshop CS6 Extended . 373 Understanding Photoshop CS6 Extended.................................................373 Using Smart Object Stack Modes................................................................374 Working with 3D Artwork............................................................................375 Creating 3D Objects......................................................................................376 Importing 3D Objects...................................................................................376 Rendering and Saving 3D Scenes................................................................377 Measuring, Counting, and Analyzing Pixels..............................................377Photoshop CS6 For Dummies Measuring Length, Area, and More............................................................377 Calculating with Vanishing Point................................................................378 Counting Crows or Maybe Avian Flu..........................................................379 Viewing Your DICOM Medical Records.....................................................380 Ignoring MATLAB.........................................................................................381 Chapter 19: Ten Reasons to Love Your Wacom Tablet . 383 More Natural Movement..............................................................................383 Health and Safety..........................................................................................383 Artistic Control.............................................................................................383 Extended Comfort.........................................................................................384 Programmable Express Keys, Touch Rings, and Touch Strips..............385 The Optimal Tablet......................................................................................385 The Pen’s Switch...........................................................................................385 Setting Preferences.......................................................................................386 The Accessories............................................................................................386 Cintiq for the Ultimate Control...................................................................387 Chapter 20: Ten Things to Know about HDR . 389 Understanding What HDR Is........................................................................389 Capturing for Merge to HDR Pro.................................................................390 Preparing Raw “Exposures” in Camera Raw.............................................391 Working with Merge to HDR Pro.................................................................392 Saving 32-Bit HDR Images............................................................................395 HDR Toning...................................................................................................395 Painting and the Color Picker in 32-Bit......................................................396 Filters and Adjustments in 32-Bit...............................................................396 Selections and Editing in 32-Bit..................................................................397 Printing HDR Images....................................................................................397 Index........................................................................ 399
滤镜效果 描述 Alpha 设置透明度 Blru 建立模糊效果 Chroma 把指定的颜色设置为透明 DropShadow 建立一种偏移的影象轮廓,即投射阴影 FlipH 水平反转 FlipV 垂直反转 Glow 为对象的外边界增加光效 Grayscale 降低图片的彩色度 Invert 将色彩、饱和度以及亮度值完全反转建立底片效果 Light 在一个对象上进行灯光投影 Mask 为一个对象建立透明膜 Shadow 建立一个对象的固体轮廓,即阴影效果 Wave 在X轴和Y轴方向利用正弦波纹打乱图片 Xray 只显示对象的轮廓 1、Alpha 滤镜 语法:{FILTERALPHA(opacity=opacity,finishopacity=finishopacity,style=style,startx=startx, starty=starty,finishx=finishx,finishy=finishy)} Alpha 属性是把一个目标元素与背景混合。设计者可以指定数值来控制混合的程度。这种“与背景混合”通俗地说就是一个元素的透明度。通过指定坐标,可以指定点、线、面的透明度。他们的参数含义分别如下: “opacity 代表透明度水准。默认的范围是从0 到 100,他们其实是百分比的形式。也就是说,0代表完全透明,100代表完全不透明。”finishopacity 是一个可选参数,如果想要设置渐变的透明效果,就可以使用他们来指定结束时的透明度。范围也是0 到 100。“style 参数指定了透明区域的形状特征。其中0代表统一形状、1代表线形、2代表放射状、3代表长方形。”STARTX“和”STARTY“代表渐变透明效果的开始X和Y坐标。”FINISHX“和”FINISHY“代表渐变透明效果结束X和Y 的坐标。 2、Blur 滤镜 语法:对于HTML:{ilterblur(add=add,direction=direction,strength=strength)} 对于Script语言: [oblurfilter=] object.filters.blur 用手指在一幅尚未干透的油画上迅速划过时,画面就会变得模糊。”Blur 就是产生同样的模糊效果。 “ADD” 参数是一个布尔判断“TRUE(默认)”或者“FALSE”。它指定图片是否被改变成印象派的模糊效果。模糊效果是按顺时针的方向进行的,“DIRECTION”参数用来设置模糊的方向。其中0度代表垂直向上,然后每45度为一个单位。它的默认值是向左的270度。“STRENGTH “值只能使用整数来指定,她代表有多少像素的宽度将受到模糊影响。默认是5个。对于网页上的字体,如果设置他的模糊”ADD=1“,那么这些字体的效果会非常好看的。如下: filterblur(add=ture,direction=135,strength=10) 3、FlipH, FlipV 滤镜
<html <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Magnifier</title> <style type="text/css"> #magnifier{ width:320px; height:280px; position:absolute; border:1px solid #000; text-align:center; line-height:280px; overflow:hidden; } #img{ width:300px; height:260px; } #Browser{ border:1px solid #000; z-index:100; position:absolute; background:#555; } #mag{ border:1px solid #000; overflow:hidden; z-index:100; } </style> [removed] function getEventObject(W3CEvent) { //事件标准化函数 return W3CEvent || window.event; } function getPointerPosition(e) { //兼容浏览器的鼠标x,y获得函数 e = e || getEventObject(e); var x = e.pageX || (e.clientX + (document.documentElement.scrollLeft || document.body.scrollLeft)); var y = e.pageY || (e.clientY + (document.documentElement.scrollTop || document.body.scrollTop)); return { 'x':x,'y':y }; } function setOpacity(elem,level) { //兼容浏览器设置透明值 if(elem.filters) { elem.style.filter = 'alpha(opacity=' + level * 100 + ')'; } else { elem.style.opacity = level; } } function css(elem,prop) { //css设置函数,可以方便设置css值,并且兼容设置透明值 for(var i in prop) { if(i == 'opacity') { setOpacity(elem,prop[i]); } else { elem.style[i] = prop[i]; } } return elem; } var magnifier = { m : null, init:function(magni){ var m = this.m = magni || { cont : null, //装载原始图像的div img : null, //放大的图像 mag : null, //放大框 scale : 15 //比例值,设置的值越大放大越大,但是这里有个问题就是如果不可以整除时,会产生些很小的白边,目前不知道如何解决 } css(m.img,{ 'position' : 'absolute', 'width' : (m.cont.clientWidth * m.scale) + 'px', //原始图像的宽*比例值 'height' : (m.cont.clientHeight * m.scale) + 'px' //原始图像的高*比例值 }) css(m.mag,{ 'display' : 'none', 'width' : m.cont.clientWidth +90 + 'px', //m.cont为原始图像,与原始图像等宽 'height' : m.cont.clientHeight + 'px', 'position' : 'absolute', 'left' : m.cont.offsetLeft + m.cont.offsetWidth + 10 + 'px', //放大框的位置为原始图像的右方远10px 'top' : m.cont.offsetTop + 'px' }) var borderWid = m.cont.getElementsByTagName('div')[0].offsetWidth - m.cont.getElementsByTagName('div')[0].clientWidth; //获取border的宽 css(m.cont.getElementsByTagName('div')[0],{ //m.cont.getElementsByTagName('div')[0]为浏览框 'display' : 'none', //开始设置为不可见 'width' : m.cont.clientWidth / m.scale - borderWid + 'px', //原始图片的宽/比例值 - border的宽度 'height' : m.cont.clientHeight / m.scale - borderWid + 'px', //原始图片的高/比例值 - border的宽度 'opacity' : 0.5 //设置透明度 }) m.img.src = m.cont.getElementsByTagName('img')[0].src; //让原始图像的src值给予放大图像 m.cont.style.cursor = 'crosshair'; m.cont.onmouseover = magnifier.start; }, start:function(e){ if(document.all){ //只在IE下执行,主要避免IE6的select无法覆盖 magnifier.createIframe(magnifier.m.img); } this.onmousemove = magnifier.move; //this指向m.cont this.onmouseout = magnifier.end; }, move:function(e){ var pos = getPointerPosition(e); //事件标准化 this.getElementsByTagName('div')[0].style.display = ''; css(this.getElementsByTagName('div')[0],{ 'top' : Math.min(Math.max(pos.y - this.offsetTop - parseInt(this.getElementsByTagName('div')[0].style.height) / 2,0),this.clientHeight - this.getElementsByTagName('div')[0].offsetHeight) + 'px', 'left' : Math.min(Math.max(pos.x - this.offsetLeft - parseInt(this.getElementsByTagName('div')[0].style.width) / 2,0),this.clientWidth - this.getElementsByTagName('div')[0].offsetWidth) + 'px' //left=鼠标x - this.offsetLeft - 浏览框宽/2,Math.max和Math.min让浏览框不会超出图像 }) magnifier.m.mag.style.display = ''; css(magnifier.m.img,{ 'top' : - (parseInt(this.getElementsByTagName('div')[0].style.top) * magnifier.m.scale) + 'px', 'left' : - (parseInt(this.getElementsByTagName('div')[0].style.left) * magnifier.m.scale) + 'px' }) }, end:function(e){ this.getElementsByTagName('div')[0].style.display = 'none'; magnifier.removeIframe(magnifier.m.img); //销毁iframe magnifier.m.mag.style.display = 'none'; }, createIframe:function(elem){ var layer = document.createElement('iframe'); layer.tabIndex = '-1'; layer.src = '[removed]false;'; elem[removed].appendChild(layer); layer.style.width = elem.offsetWidth + 'px'; layer.style.height = elem.offsetHeight + 'px'; }, removeIframe:function(elem){ var layers = elem[removed].getElementsByTagName('iframe'); while(layers.length >0){ layers[0][removed].removeChild(layers[0]); } } } window.onload = function(){ magnifier.init({ cont : document.getElementById('magnifier'), img : document.getElementById('magnifierImg'), mag : document.getElementById('mag'), scale : 3 }); } [removed] </head>
Javascript小技巧一箩筐 事件源对象 event.srcElement.tagName event.srcElement.type 捕获释放 event.srcElement.setCapture(); event.srcElement.releaseCapture(); 事件按键 event.keyCode event.shiftKey event.altKey event.ctrlKey 事件返回值 event.returnValue 鼠标位置 event.x event.y 窗体活动元素 document.activeElement 绑定事件 document.captureEvents(Event.KEYDOWN); 访问窗体元素 document.all("txt").focus(); document.all("txt").select(); 窗体命令 document.execCommand 窗体COOKIE document.cookie 菜单事件 document.oncontextmenu 创建元素 document.createElement("SPAN"); 根据鼠标获得元素: document.elementFromPoint(event.x,event.y).tagName=="TD document.elementFromPoint(event.x,event.y).appendChild(ms) 窗体图片 document.images[索引] 窗体事件绑定 document.onmousedown=scrollwindow; 元素 document.窗体.elements[索引] 对象绑定事件 document.all.xxx.detachEvent("onclick",a); 插件数目 navigator.plugins 取变量类型 typeof($js_libpath) == "undefined" 下拉框 下拉框.options[索引] 下拉框.options.length 查找对象 document.getElementsByName("r1"); document.getElementById(id); 定时 timer=setInterval("scrollwindow()",delay); clearInterval(timer); UNCODE编码 escape() ,unescape 父对象 obj.parentElement(dhtml) obj.parentNode(dom) 交换表的行 TableID.moveRow(2,1) 替换CSS document.all.csss.href = "a.css"; 并排显示 display:inline 隐藏焦点 hidefocus=true 根据宽度换行 style="word-break:break-all" 自动刷新 简单邮件 快速转到位置 obj.scrollIntoView(true) 锚 anchors 网页传递参数 location.search(); 可编辑 obj.contenteditable=true 执行菜单命令 obj.execCommand 双字节字符 /[^x00-xff]/ 汉字 /[u4e00-u9fa5]/ 让英文字符串超出表格宽度自动换行 word-wrap: break-word; word-break: break-all; 透明背景 获得style内容 obj.style.cssText HTML标签 document.documentElement.innerHTML 第一个style标签 document.styleSheets[0] style标签里的第一个样式 document.styleSheets[0].rules[0] 防止点击空链接时,页面往往重置到页首端。 word 上一网页源 asp: request.servervariables("HTTP_REFERER") javascript: document.referrer 释放内存 CollectGarbage(); 禁止右键 document.oncontextmenu = function() { return false;} 禁止保存 地址栏图标 favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下 收藏栏图标 查看源码 关闭输入法 自动全选 ENTER键可以让光标移到下一个输入框 文本框的默认值 title换行 obj.title = "123 sdfs " 获得时间所代表的微秒 var n1 = new Date("2004-10-10".replace(/-/g, "/")).getTime() 窗口是否关闭 win.closed checkbox扁平
获取选中内容 document.selection.createRange().duplicate().text 自动完成功能 打开该功能 关闭该功能 窗口最大化 无关闭按钮IE window.open("aa.htm", "meizz", "fullscreen=7"); 统一编码/解码 alert(decodeURIComponent(encodeURIComponent("http://你好.com?as= hehe"))) encodeURIComponent对":"、"/"、";" 和 "?"也编码 表格行指示 //各种尺寸 s += " 网页可见区域宽:"+ document.body.clientWidth; s += " 网页可见区域高:"+ document.body.clientHeight; s += " 网页可见区域高:"+ document.body.offsetWeight +" (包括边线的宽)"; s += " 网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)"; s += " 网页正文全文宽:"+ document.body.scrollWidth; s += " 网页正文全文高:"+ document.body.scrollHeight; s += " 网页被卷去的高:"+ document.body.scrollTop; s += " 网页被卷去的左:"+ document.body.scrollLeft; s += " 网页正文部分上:"+ window.screenTop; s += " 网页正文部分左:"+ window.screenLeft; s += " 屏幕分辨率的高:"+ window.screen.height; s += " 屏幕分辨率的宽:"+ window.screen.width; s += " 屏幕可用工作区高度:"+ window.screen.availHeight; s += " 屏幕可用工作区宽度:"+ window.screen.availWidth; //过滤数字 //特殊用途 //不缓存 //正则匹配匹配中文字符的正则表达式: [u4e00-u9fa5] 匹配双字节字符(包括汉字在内):[^x00-xff] 匹配空行的正则表达式: [s| ]* 匹配HTML标记的正则表达式:/<(.*)>.*|<(.*) />/ 匹配首尾空格的正则表达式:(^s*)|(s*$)(像vbscript那样的trim函数) 匹配Email地址的正则表达式:w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)* 匹配网址URL的正则表达式:http://([w-]+.)+[w-]+(/[w- ./?%&=]*)? 以下是例子: 利用正则表达式限制网页表单里的文本框输入内容: 用正则表达式限制只能输入中文:onkeyup="value=value.replace(/[^u4E00-u9FA5]/g,"")" onbeforepaste="clipboardData.setData("text",clipboardData.getData("text").replace(/[^u4E00-u9FA5]/g,""))" 1.用正则表达式限制只能输入全角字符: onkeyup="value=value.replace(/[^uFF00-uFFFF]/g,"")" onbeforepaste="clipboardData.setData("text",clipboardData.getData("text").replace(/[^uFF00-uFFFF]/g,""))" 2.用正则表达式限制只能输入数字:onkeyup="value=value.replace(/[^d]/g,"") "onbeforepaste="clipboardData.setData("text",clipboardData.getData("text").replace(/[^d]/g,""))" 3.用正则表达式限制只能输入数字和英文:onkeyup="value=value.replace(/[W]/g,"") "onbeforepaste="clipboardData.setData("text",clipboardData.getData("text").replace(/[^d]/g,""))" //消除图像工具栏 or //无提示关闭 function Close() { var ua=navigator.userAgent var ie=navigator.appName=="Microsoft Internet Explorer"?true:false if(ie) { var IEversion=parseFloat(ua.substring(ua.indexOf("MSIE ")+5,ua.indexOf(";",ua.indexOf("MSIE ")))) if(IEversion< 5.5) { var str = "<object id=noTipClose classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">" str += "object>"; document.body.insertAdjacentHTML("beforeEnd", str); document.all.noTipClose.Click(); } else { window.opener =null; window.close(); } } else { window.close() } } //取得控件得绝对位置(1) <script language="javascript"> function getoffset(e) { var t=e.offsetTop; var l=e.offsetLeft; while(e=e.offsetParent) { t+=e.offsetTop; l+=e.offsetLeft; } var rec = new Array(1); rec[0] = t; rec[1] = l; return rec } object id=min classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11"> object> <object id=max classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11"> object> <OBJECT id=close classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"> OBJECT> //光标停在文字最后 <script language="javascript"> function cc() { var e = event.srcElement; var r =e.createTextRange(); r.moveStart("character",e.value.length); r.collapse(true); r.select(); } //页面进入和退出的特效 进入页面 推出页面 这个是页面被载入和调出时的一些特效。duration表示特效的持续时间,以秒为单位。transition表示使 用哪种特效,取值为1-23:   0 矩形缩小   1 矩形扩大   2 圆形缩小   3 圆形扩大   4 下到上刷新   5 上到下刷新   6 左到右刷新   7 右到左刷新   8 竖百叶窗   9 横百叶窗   10 错位横百叶窗   11 错位竖百叶窗   12 点扩散   13 左右到中间刷新   14 中间到左右刷新   15 中间到上下   16 上下到中间   17 右下到左上   18 右上到左下   19 左上到右下   20 左下到右上   21 横条   22 竖条   23 //网页是否被检索   其中属性值有以下一些:   属性值为"all": 文件将被检索,且页上链接可被查询;   属性值为"none": 文件不被检索,而且不查询页上的链接;   属性值为"index": 文件将被检索;   属性值为"follow": 查询页上的链接;   属性值为"noindex": 文件不检索,但可被查询链接;   属性值为"nofollow": //打印分页

page1

page2

//设置打印 <object id="factory" style="display:none" viewastext classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase="http://www.meadroid.com/scriptx/ScriptX.cab#Version=5,60,0,360" >object> <script language=javascript> function window.onload() { // -- advanced features factory.printing.SetMarginMeasure(2) // measure margins in inches factory.printing.SetPageRange(false, 1, 3) // need pages from 1 to 3 factory.printing.printer = "HP DeskJet 870C" factory.printing.copies = 2 factory.printing.collate = true factory.printing.paperSize = "A4" factory.printing.paperSource = "Manual feed" // -- basic features factory.printing.header = "居左显示&b居中显示&b居右显示页码,第&p页/共&P页" factory.printing.footer = "(自定义页脚)" factory.printing.portrait = false factory.printing.leftMargin = 0.75 factory.printing.topMargin = 1.5 factory.printing.rightMargin = 0.75 factory.printing.bottomMargin = 1.5 } function Print(frame) { factory.printing.Print(true, frame) // print with prompt }
具体使用手册,更多信息,点这里 //自带的打印预览 WebBrowser.ExecWB(1,1) 打开 Web.ExecWB(2,1) 关闭现在所有的IE窗口,并打开一个新窗口 Web.ExecWB(4,1) 保存网页 Web.ExecWB(6,1) 打印 Web.ExecWB(7,1) 打印预览 Web.ExecWB(8,1) 打印页面设置 Web.ExecWB(10,1) 查看页面属性 Web.ExecWB(15,1) 好像是撤销,有待确认 Web.ExecWB(17,1) 全选 Web.ExecWB(22,1) 刷新 Web.ExecWB(45,1) 关闭窗体无提示 <object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"> object>

//去掉打印时的页眉页脚 <script language="JavaScript"> var HKEY_Root,HKEY_Path,HKEY_Key; HKEY_Root="HKEY_CURRENT_USER"; HKEY_Path="\Software\Microsoft\Internet Explorer\PageSetup\"; //设置网页打印的页眉页脚为空 function PageSetup_Null() { try { var Wsh=new ActiveXObject("WScript.Shell"); HKEY_Key="header"; Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,""); HKEY_Key="footer"; Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,""); } catch(e){} } //设置网页打印的页眉页脚为默认值 function PageSetup_Default() { try { var Wsh=new ActiveXObject("WScript.Shell"); HKEY_Key="header"; Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"&w&b页码,&p/&P"); HKEY_Key="footer"; Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"&u&b&d"); } catch(e){} } //浏览器验证 function checkBrowser() { this.ver=navigator.appVersion this.dom=document.getElementById?1:0 this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0; this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; this.ie4=(document.all && !this.dom)?1:0; this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.mac=(this.ver.indexOf("Mac") > -1) ?1:0; this.ope=(navigator.userAgent.indexOf("Opera")>-1); this.ie=(this.ie6 || this.ie5 || this.ie4) this.ns=(this.ns4 || this.ns5) this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns5 || this.ns4 || this.mac || this.ope) this.nbw=(!this.bw) return this; } //计算内容宽和高 //无模式的提示框 function modelessAlert(Msg) { window.showModelessDialog("javascript:alert(""+escape(Msg)+"");window.close();","","status:no;resizable:no;help:no;dialogHeight:height:30px;dialogHeight:40px;"); } //屏蔽按键 屏蔽鼠标右键、Ctrl+N、Shift+F10、Alt+F4、F11、F5刷新、退格键 <script language="Javascript"> //可编辑SELECT //设置光标位置 function getCaret(textbox) { var control = document.activeElement; textbox.focus(); var rang = document.selection.createRange(); rang.setEndPoint("StartToStart",textbox.createTextRange()) control.focus(); return rang.text.length; } function setCaret(textbox,pos) { try { var r =textbox.createTextRange(); r.moveStart("character",pos); r.collapse(true); r.select(); } catch(e) {} } function selectLength(textbox,start,len) { try { var r =textbox.createTextRange(); r.moveEnd("character",len-(textbox.value.length-start)); r.moveStart("character",start); r.select(); } catch(e) {//alert(e.description)} } function insertAtCaret(textbox,text) { textbox.focus(); document.selection.createRange().text = text; } //页内查找 function findInPage(str) { var txt, i, found,n = 0; if (str == "") { return false; } txt = document.body.createTextRange(); for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) { txt.moveStart("character", 1); txt.moveEnd("textedit"); } if (found) { txt.moveStart("character", -1); txt.findText(str); txt.select(); txt.scrollIntoView(); n++; } else { if (n > 0) { n = 0; findInPage(str); } else { alert(str + "... 您要找的文字不存在。 请试着输入页面中的关键字再次查找!"); } } return false; } //书 http://www.itpub.net/attachment.php?s=&postid=1894598 http://www.wrclub.net/down/listdown.aspx?id=1341//操作EXECL <script language="javascript"> function jStartExcel() { var xls = new ActiveXObject ( "Excel.Application" ); xls.visible = true; var newBook = xls.Workbooks.Add; newBook.Worksheets.Add; newBook.Worksheets(1).Activate; xls.ActiveWorkBook.ActiveSheet.PageSetup.Orientation = 2; xls.ActiveWorkBook.ActiveSheet.PageSetup.PaperSize = 5; newBook.Worksheets(1).Columns("A").columnwidth=50; newBook.Worksheets(1).Columns("A").WrapText = true; newBook.Worksheets(1).Columns("B").columnwidth=50; newBook.Worksheets(1).Columns("B").WrapText = true; newBook.Worksheets(1).Range("A1:B1000").NumberFormat = "0"; newBook.Worksheets(1).Range("A1:B1000").HorizontalAlignment = -4131; newBook.Worksheets(1).Cells(1,1).Interior.ColorIndex="15"; newBook.Worksheets(1).Cells(1,1).value="First Column, First Cell"; newBook.Worksheets(1).Cells(2,1).value="First Column, Second Cell"; newBook.Worksheets(1).Cells(1,2).value="Second Column, First Cell"; newBook.Worksheets(1).Cells(2,2).value="Second Column, Second Cell"; newBook.Worksheets(1).Name="My First WorkSheet"; } tip <script Language="JavaScript"> //***********默认设置定义.********************* tPopWait=50;//停留tWait豪秒后显示提示。 tPopShow=5000;//显示tShow豪秒后关闭提示 showPopStep=20; popOpacity=99; //***************内部变量定义***************** sPop=null; curShow=null; tFadeOut=null; tFadeIn=null; tFadeWaiting=null; document.write(""); document.write("
"); function showPopupText(){ var o=event.srcElement; MouseX=event.x; MouseY=event.y; if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""}; if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""}; if(o.dypop!=sPop) { sPop=o.dypop; clearTimeout(curShow); clearTimeout(tFadeOut); clearTimeout(tFadeIn); clearTimeout(tFadeWaiting); if(sPop==null || sPop=="") { dypopLayer.innerHTML=""; dypopLayer.style.filter="Alpha()"; dypopLayer.filters.Alpha.opacity=0; } else { if(o.dyclass!=null) popStyle=o.dyclass else popStyle="cPopText"; curShow=setTimeout("showIt()",tPopWait); } } } function showIt(){ dypopLayer.className=popStyle; dypopLayer.innerHTML=sPop; popWidth=dypopLayer.clientWidth; popHeight=dypopLayer.clientHeight; if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24 else popLeftAdjust=0; if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24 else popTopAdjust=0; dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust; dypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust; dypopLayer.style.filter="Alpha(Opacity=0)"; fadeOut(); } function fadeOut(){ if(dypopLayer.filters.Alpha.opacityOpacity) { dypopLayer.filters.Alpha.opacity+=showPopStep; tFadeOut=setTimeout("fadeOut()",1); } else { dypopLayer.filters.Alpha.opacity=popOpacity; tFadeWaiting=setTimeout("fadeIn()",tPopShow); } } function fadeIn(){ if(dypopLayer.filters.Alpha.opacity>0) { dypopLayer.filters.Alpha.opacity-=1; tFadeIn=setTimeout("fadeIn()",1); } } document.onmouseover=showPopupText; 插入文字"); } } //netscapte下操作xml doc = new ActiveXObject("Msxml2.DOMDocument"); doc = new ActiveXObject("Microsoft.XMLDOM") ->> doc = (new DOMParser()).parseFromString(sXML,"text/xml") //判断键值 <script language="javascript"> var ie =navigator.appName=="Microsoft Internet Explorer"?true:false; function keyDown(e) { if(!ie) { var nkey=e.which; var iekey="现在是ns浏览器"; var realkey=String.fromCharCode(e.which); } if(ie) { var iekey=event.keyCode; var nkey="现在是ie浏览器"; var realkey=String.fromCharCode(event.keyCode); if(event.keyCode==32){realkey="" 空格""} if(event.keyCode==13){realkey="" 回车""} if(event.keyCode==27){realkey="" Esc""} if(event.keyCode==16){realkey="" Shift""} if(event.keyCode==17){realkey="" Ctrl""} if(event.keyCode==18){realkey="" Alt""} } alert("ns浏览器中键值:"+nkey+" "+"ie浏览器中键值:"+iekey+" "+"实际键为"+realkey); } document.onkeydown = keyDown; //Javascript Document.

请按任意一个键。。。。

//禁止FSO 1.注销组件 regsvr32 /u scrrun.dll 2.修改PROGID HKEY_CLASSES_ROOTScripting.FileSystemObject Scripting.FileSystemObject 3.对于使用object的用户,修改HKEY_CLASSES_ROOTScripting. //省略号
就是比如有一行文字,很长,表格内一行显示不下.
//检测media play版本 //图象按比例 <script language="JavaScript"> //细线SELECT function getComputerName() { var objWMIService = GetObject("Winmgmts:rootcimv2"); for(e = new Enumerator(objWMIService) ; !e.atEnd() ; e.moveNext()) { var getComputer = e.item(); return getComputer.Name; } } //条件编译 <script language=javascript> /*@cc_on @*/ /*@if (@_win32 && @_jscript_version>5) function window.confirm(str) { execScript("n = msgbox(""+ str +"", 257)", "vbscript"); return(n == 1); } @end @*/ //mergeAttributes 复制所有读/写标签属性到指定元素。
This is a sample DIV element.
This is another sample DIV element.
以上内容可以随意转载,转载后请注名来源和出处! 原文链接:http://ttyp.cnblogs.com/archive/2004/11/15/63900.aspx //Import function Import() { for( var i=0; i"); else document.write(""); } }; //js枚举 function getComputerName() { var objWMIService = GetObject("Winmgmts:rootcimv2"); for(e = new Enumerator(objWMIService) ; !e.atEnd() ; e.moveNext()) { var getComputer = e.item(); return getComputer.Name; } } //条件编译 <script language=javascript> /*@cc_on @*/ /*@if (@_win32 && @_jscript_version>5) function window.confirm(str) { execScript("n = msgbox(""+ str +"", 257)", "vbscript"); return(n == 1); } @end @*/ //mergeAttributes 复制所有读/写标签属性到指定元素。
This is a sample DIV element.
This is another sample DIV element.
电子书制作:源码爱好者

87,901

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧