📄 03.js
字号:
/** * Find all <img> tags in the document that have a "ro:src" * attribute on them. Use the value of this attribute as the URL of an * image to be displayed when the mouse passes over the image, and set * appropriate event handlers to create the rollover effect. * The ro: namespace prefix should be mapped to the URI * "http://www.davidflanagan.com/rollover" */function initRollovers() { var images = document.getElementsByTagName("img"); for(var i = 0; i < images.length; i++) { var image = images[i]; var rolloverURL = image.getAttributeNS(initRollovers.xmlns, "src"); if (rolloverURL) addRollover(image, rolloverURL); }}// This is a made-up namespace URI for our "ro:" namespaceinitRollovers.xmlns = "http://www.davidflanagan.com/rollover";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -