javascritp有兴趣的朋友都来参与

xuheguan 2002-04-23 09:26:03
打开http://www.104sex.com.tw/cgi-bin/guestbook/application.cgi?partnerno=
申请表单中有个颜色查询表,帮忙改一下,把它换成图片,点击图片后确定,母页即显示图片。谢谢
...全文
66 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
eyusir 2002-05-04
  • 打赏
  • 举报
回复
<table cellpadding="2" width="241" cellspacing="2" border="0" >
<tr>
<td width="32" align="right"><img id=idface1 src="../../../free/guestbook/images/1.gif" alt=个人形象代表 width="32" height="32"></td>
<td width="30" ><font class=cha2>头像</font></td>
<td width="62">
<select onChange="document.images['idface1'].src=options[selectedIndex].value;" class="editbox1" >
<%
dim i
for i=1 to 20
%>
<option select value="/free/guestbook/images/<%=I%>.gif">头像<%=I%></option>
<%
next
%>
</select>
</td>
<td width="91"> --> ASP 数组 </td>
</tr>
</table>
xuheguan 2002-05-04
  • 打赏
  • 举报
回复
<table cellpadding="2" width="241" cellspacing="2" border="0" >
<tr>
<td width="32" align="right"><img id=idface1 src="../../../free/guestbook/images/1.gif" alt=个人形象代表 width="32" height="32"></td>
<td width="30" ><font class=cha2>头像</font></td>
<td width="62">
<select onChange="document.images['idface1'].src=options[selectedIndex].value;" class="editbox1" >
<%
dim i
for i=1 to 20
%>
<option select value="/free/guestbook/images/<%=I%>.gif">头像<%=I%></option>
<%
next
%>
</select>
</td>
<td width="91"> --> ASP 数组 </td>
</tr>
</table>
linhaibo 2002-04-25
  • 打赏
  • 举报
回复
oh my god....
linhaibo 2002-04-25
  • 打赏
  • 举报
回复
调用系统的颜色选择框:

<script>

var sInitColor = null;
function callColorDlg() //打开系统颜色对话框,,,(只有IE5.5或者更高版本才支持)
{
if (sInitColor == null)
var sColor = dlgHelper.ChooseColorDlg();
else
var sColor = dlgHelper.ChooseColorDlg(sInitColor);

sColor = sColor.toString(16);//把数字转换为16进制

if (sColor.length < 6)
{
var sTempString = "000000".substring(0,6-sColor.length);
sColor = sTempString.concat(sColor); //如小于六位补足6位
}

oDiv.style.color= sColor;
sInitColor = sColor;

}
callColorDlg();
</script>
<!-- 创建dlgHelper对象 -->
<OBJECT id=dlgHelper CLASSID="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" width="0px" height="0px" ></OBJECT>
eyusir 2002-04-25
  • 打赏
  • 举报
回复
用别的办法吧
emu 2002-04-25
  • 打赏
  • 举报
回复
to: linhaibo(美洲豹)
放到<body> </body>里面了,怎么没有用啊?
blues-star 2002-04-23
  • 打赏
  • 举报
回复
回答错误,嘿嘿,我以为你要选颜色呢~
blues-star 2002-04-23
  • 打赏
  • 举报
回复
你不如直接使用ACTIVEX控件

控件名叫

microsoft command dialog control
chensh1024 2002-04-23
  • 打赏
  • 举报
回复
window.opener.document.all.myimg(img的name).src="./aa.gif";
xuheguan 2002-04-23
  • 打赏
  • 举报
回复
不是我的网站,它那个站有个示例,即可以选择颜色,但我自己想做个那类似的,只是选择图片
chensh1024 2002-04-23
  • 打赏
  • 举报
回复
没明白意思,你把那部分代码放在上面吧,我帮你改。
你们那网站能赚钱吗?嘿嘿

87,993

社区成员

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

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