javascript控制iframe的src地址?
<iframesrc='http://www.911pop.com/qmoonplayer/apply/viewradio.aspx?id=75466126-0abc-4...
<iframe src=' http://www.911pop.com/qmoonplayer/apply/viewradio.aspx?id=75466126-0abc-4ef2-bf0f-574712b47e5b' marginwidth='0' marginheight='0' frameborder='0' scrolling='no' width='910px' height='36px'></iframe>============================================================<iframe src=' http://www.911pop.com/qmoonplayer/apply/viewradio.aspx?id=0f1b0eda-b310-4460-b65c-8d295b0c088c' marginwidth='0' marginheight='0' frameborder='0' scrolling='no' width='960px' height='36px'></iframe> 网页中加两个按钮 控制两个iframe切换, 或者切换iframe中的src地址,求助!
展开
1个回答
2013-05-20
展开全部
<iframe id="frame" src="" marginwidth="0" marginheight="0" frameborder=0 scrolling=no width='910px' height='200px'></iframe><input name="1" type="button" onclick="document.getElementById('frame').src=' http://www.163.com'" value="网易" /><input name="1" type="button" onclick="document.getElementById('frame').src=' http://www.baidu.com'" value="百度" />
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询