所有问题: [dhtml]

147 个问题

类似标签:
2
投票
4答案
1556 次观看

无法在Flash文件上方获取CSS下拉列表

我已经搜索了所有内容,并尝试了可以使用的所有方法,并且无法使我的CSS下拉菜单显示在Flash文件上方。 您可以转到: http://beta.riverlifefellowship.com ,用户名是“ riverlife”,并且密码为“流”(两者都没有引号)。 我正在使用swfObject并设置了<param name="flashvars" value="wmode=opaque"/>。下拉列表周围的div是绝对位置,z索引为9999,flash文件周围的div是相对位置,z索引为-1 任何尝试的建议都将不胜感激! [注意:它适用于Mac OS上的所有浏览器...

1
投票
3答案
371 次观看

Fx on Javascript:如何在没有框架的情况下淡化东西等?

我想学习如何淡入淡出,以及对Javascript的类似效果。 我经常得到答案,例如为什么不使用Jquery,mootools等?好吧,我 想了解东西是如何工作的,那么我不会介意使用任何这些框架。 我目前正在学习有关在DOM上进行更改的知识,因此,我读了很多 关于这个主题的东西。另外,我读过有关回流的信息,但是,我没有发现任何不错的选择 重绘上的内容,但我会继续搜索。 通过查看源文件等,我看到一些方法,这些方法我不知道 创建或是JS的核心方法。 我的问题是,有没有什么资源可以让我学习所有这些精巧的东西,例如 平滑的位置变化,淡入淡出的元素不透明或其他原因?

0
投票
1答案
984 次观看

根据滚动位置显示在热点上方或下方的工具提示

当您将鼠标悬停在图像地图上的热点上时,我已经做了一些简单的JavaScript来显示和隐藏一些div。 <script> function showDiv(name) { document.getElementById(name).style.display = "block"; } function hideDiv(name) { document.getElementById(name).style.display = "none"; } </script> 在mouseover和mouseout事件上适当调用这些函数。 目前,定位已应用到CSS中...

0
投票
2答案
1759 次观看

DHTML弹出窗口

我正在尝试在我的网站上创建一个DHTML窗口,实际上我可以将其弹出。我遇到的问题是,它弹出时会在页面上四处移动文本。我已经看到了DHTML弹出窗口的示例,但在这里却没有发生这种情况: http://dhtmlpopups.webarticles.org / basics.php 或此处: http:// www.php-development.ru / javascripts / popup-window.php 我无法弄清楚我在做什么,弹出窗口的div标签看起来像这样 <div id="loginPopup" style="position: relative; dis...

17
投票
2答案
8410 次观看

在IE7中更改DHTML后,如何强制重排?

我有一个页面,用户可以在其中动态添加文件上传框。添加框会更改它们所在的div的高度,但是div下方的div的某些元素会保留在同一位置,因此它们开始与新的DOM元素重叠。 这在IE8,Firefox,Chrome中正常运行。如何强制IE7使用新的DHTML重排页面? 我得出的最佳解决方案是: window.resizeBy(1, 0); setTimeout(UndoResize, 0); 但是它不适用于最大化的窗口(它会还原窗口)。

0
投票
1答案
1992 次观看

需要设置1个span的样式才能显示:由span的set设置为display:none的图库在页面加载时被阻止

我在页面顶部有一些Java脚本,这些Java脚本控制着图片库,用户可以在其中单击缩略图并放大图像,并在跨度中显示一些文本。每页有10个这些缩略图,我需要找出如何在页面加载时将第一个缩略图的隐藏范围设置为“阻止”。 <script type="text/javascript"> function hideSpan(spanName) { var obj = document.getElementById(spanName); obj.style.border="0px"; obj.style.color="#fff"; obj.style.display="none"...

3
投票
2答案
466 次观看

如何在纯DHTML游戏中控制声音

我正在研究仅使用Javascript,HTML和CSS编写基于Web的游戏。似乎可以使用这些技术完成许多类的游戏,除了一件事。我真的找不到控制声音的好方法,我唯一能看到的是将某种控件嵌入到页面中。他们有办法在DHTML中做精细的声音效果吗? 让我们说我有一个台球游戏,想让球的声音相互撞击,有没有办法不用某种插件来做到这一点?

7
投票
9答案
1600 次观看

如何动态地在网页上的图像上放置不同的图案。

我有 一堆织物图案(简单的jpg文件) 每个字母的图片(白色背景) 我本质上希望拥有一个类似于以下内容的页面: http://www.craftcuts.com/hand-painted- wooden-letters-single-patterns.html 但我希望用户能够: 输入名称 选择图案(jpg文件之一) ,然后让它以该模式显示该名称。 很明显,我可以为每个字母组合(现在我为每个带有白色背景的字母都提供一个jpg)和图案创建单独的jpg,但是我想知道是否有一种更优雅的编码方式来实现它动态地将一个图像放在另一个字母上。 编辑:在我的第一篇文章...

1
投票
3答案
80 次观看

可移动组件资源提示

我想创建一个像iGoogle或facebook个人资料这样的用户界面,最终用户可以在其中自定义布局。移动组件,调整大小e 您有关于资源/代码示例的建议以创建类似的东西吗?

2
投票
2答案
4686 次观看

TinyMCE是否有可用的内容焦点/模糊事件?

我希望能够在编辑器首次加载时显示默认文本,例如“在此处输入内容...”,但是我希望当用户单击/重点放在内容区域时此文本消失。然后,如果他们在不输入任何内容的情况下“模糊”(移出)内容区域,我希望在编辑器中重新显示“默认文本”。 在Google搜索并浏览TinyMCE的Wiki之后,看起来好像有 onActivate 和 onDeactivate 事件应该部分地做到这一点;但是,onDeactivate的Wiki页面上有一个免责声明,指出它不是真正的“模糊”方法,而且我无法使onActivate事件正常工作(至少使用FF 3.5)。 还有其他人找到解决方案吗?我正在使用库存的TinyM...

3
投票
4答案
3199 次观看

使用javascript滚动HTML页面?

我创建了一个通过JavaScript滚动的页面,但是在某些浏览器中,当您输入文本并向该页面滚动时,滚动页面不是很流畅吗?而且它似乎在chrome中根本不起作用。 我的问题是:使用跨浏览器有效的JavaScript创建平滑滚动html页面的最佳方法是什么? 要了解我要做什么,这是我制作的测试页。 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="...

0
投票
1答案
1072 次观看

Forcing lightbox/dhtml over flash

I have read a lot of posts about how you can force lightbox (or other dhtml things) above flash by modifying the embed-tag with wmode="opaque". Just modifying the z-index of lightbox (or whatever else you want above the flash) simply is not enough. But what if you cannot control the embed-tag? ...

2
投票
1答案
585 次观看

How to store dynamically generated HTML form elements from Javascript in Python?

I have an HTML form that a user can add an arbitrary amount of input fields to through jQuery. The user is also able to remove any input field from any position. My current implementation is that each new input box has an id of "field[i]" so when the form is posted it is processed in Python as fi...

0
投票
2答案
587 次观看

Make the OnMousedown event to be triggered only after the OnBlur event is triggered

We have a HTML screen that is formed by including the two sections below: Footer - A bar with icons that includes an Update button. The update button has the onmousedown event associated with it. When the Update button is clicked the data present in the Body is saved in the database. Body - H...

1
投票
3答案
15331 次观看

How to "lock" columns in an HTML table?

I am pulling back a large amount of tabular data that I wish to display using a table. The only caveat is that I would like to be able to "lock" a few of the columns (fname/lname/email) so that when users scroll horizontally those columns always stay "locked" in place and are visible. I have do...

0
投票
3答案
338 次观看

Flash movie rendering on top of dhtml menu

How should one go about placing a flash movie beneath a dhtml menu? On the following page: http://bit.ly/aZai8 , the flash movie appears on top of the dhtml drop down menus in Internet Explorer. This does not seem to be an issue in more civilized browsers.

0
投票
1答案
858 次观看

How to make swappable div 'ui cards' with jQuery?

For example if you had a wizard that had step by step directions asking for information, each div would have the controls needed for each step (only one div shows at a time). Then you would swap through them one by one, hence going through a multi-step process all in one page load. Is this pretty...

0
投票
1答案
288 次观看

Replace JavaScript with ActionScript in DHTML

I need to write a DHTML page. But, since I have most of the code inside an AS3 library, I want to use ActionScript instead of JavaScript to do the most of work. In this case JavaScript layer (if any) would be just a write-once abstract proxy. I know about ExternalInterface stuff, but I want some...

2
投票
3答案
927 次观看

YUI Hello World

I'm trying to do some experimental stuff for which YUI looks like the best solution. The Getting Started documentation is all written on the assumption that you already know how to use YUI and only need to find out how to use specific components. Is there any documentation available that tells yo...

1
投票
1答案
3763 次观看

iframe as textarea?

I have an iframe in an HTML page, how can I cause it to act as a textarea?

-1
投票
2答案
163 次观看

Menu javascript/dhtml

Does anybody know a good free javascript/dhtml menu with vertical alignment, supporting multi-level options, expanding on hover? Tks in advance

2
投票
2答案
3368 次观看

WYSIWYG HTML editor for custom cms

Am looking for a good and easy to use WYSIWYG HTML editor that i can integrate into a CMS that am currently developing for a client. Am developing the CMS in PHP and is web-based. The editor will have both visual and code view. Thanks for ur help.

3
投票
5答案
2393 次观看

How to make an Ajax loader follow mouse?

I want to have something on my site that follows the mouse around, sort of like how Windows 7 does it. Like in Windows 7 when something is loading up a little circle comes and follows the mouse. I am using the jQuery library so I know I can use Ajax Start and Stop to make it appear but am not s...

0
投票
3答案
187 次观看

Is it possible to modify a web page as it's loading?

I have a Perl script that generates a web page. It takes a non-trivial amount of time to run. I would like to be able to render a complete HTML table to the user so they know what results to expect, but fill in the details slowly as the Perl script generates them. What approach should I be takin...

557
投票
8答案
506793 次观看

How do I attach events to dynamic HTML elements with jQuery?

Suppose I have some jQuery code that attaches an event handler to all elements with class .myclass. For example: $(function(){ $(".myclass").click( function() { // do something }); }); And my HTML might be as follows: <a class="myclass" href="#">test1</a> <a c...

0
投票
2答案
105 次观看

How does gmail dictate if an attachment is to be rendered or downloaded?

I'm curious what the methodology is behind the way that gmail (in their web client) offers a "view" and "download" links right next to each other for things like an attached .jpg file. I have found that the browser generally decides how it's going to handle such things based on the file's extens...

0
投票
1答案
899 次观看

Draggable div issue in IE7

This example uses mootools but I see the same behavior with scriptaculous. I have a div with some content, in this case a single X and there's plenty of white space around the content. I make the div draggable but I find it's difficult to drag the div in IE. In IE I need to click and drag dire...

2
投票
3答案
4355 次观看

z-index not working in IE

I have a button, while clicking the button i just produce a div containing some checkbox. If the user select the required checkbox, it will produce a iframe according to the value of the checkbox and the div will disappear. Its placed immediately below the button. Up to this its working fine. If ...

13
投票
15答案
44356 次观看

CSS issue: a:hover not working with IE (css Ninja needed)

Why does IE not change the background color on my site for tabs a:hover but does so in Firefox/Chrome/Safari correctly? What can I do to make it work in IE 6+? HTML <ul class="tabbernav"> <li class="tabberactive"><a title="All" href="javascript:void(null);">All</a></...

1
投票
3答案
298 次观看

How can I find out what div a div is in with javascript?

I have a page which will contain 4 static divs with IDs. I will be adding scriptaculous dragable and droppable effects to allow interaction by moving many dynamically generated divs from one div to another. I need to be able to find out which of the static divs the dynamic divs are in. How can I...