日期:2014-05-17 浏览次数:20442 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>check</title> </head> <body> <script> function changeForm(param){ document.getElementById("ifr").src = param; } </script> <div> <label><input type="radio" name="check" onclick="changeForm('form1.html')" />form1</label> <label><input type="radio" name="check" onclick="changeForm('form2.html')" />form2</label> <label><input type="radio" name="check" onclick="changeForm('form3.html')" />form3</label><br /> <iframe id="ifr" name="ifr" src="" frameborder="0" scrolling="no" style="border:0"></iframe> </div> </body> </html>
------解决方案--------------------
果断Ajax:
参考;
http://topic.csdn.net/u/20120513/19/6133363b-ea5a-4b36-b719-b0e8483a15e1.html
http://topic.csdn.net/u/20120516/09/dd9c19b5-bbf3-4f1f-bdbb-d58ade236f5f.html