...

View Full Version : Allow members to browse other sites from within my site



CBG
04-07-2011, 10:33 PM
Hi,

I would like members to be able to browse other websites from within my site.
I presume I would use an iframe.

But I was wondering if anyone know of a script I can just drop into my current code.

harbingerOTV
04-08-2011, 02:40 PM
pretty vague request but here:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>jQuery web browser mumbo-jumbo-palooza</title>
</head>
<body>

<form action="" method="post">
<div>
<input type="text" name="url" id="url" style="width: 400px;">
<input type="button" id="submit" value="Blam! Go do your thing!">
</div>
</form>

<div id="browser" style="border: 1px solid #000; width: 600px; height: 500px; margin: 10px 0 0 0;"></div>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript">
$('#submit').click(function(){
$('#browser').html('<iframe src="http://'+ $('#url').val() +'" style="width: 600px; height: 500px;"><\/iframe>');
});
</script>

</body>
</html>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum