Making this Animated Window script work!

G

Gil

Animated Window Script...


<SCRIPT language=JavaScript>
<!-- Begin

function expandingWindow(website) {
var windowprops='width=100,height=100,scrollbars=yes,status=yes,resizable=yes'
var heightspeed = 2; // vertical scrolling speed (higher = slower)
var widthspeed = 7; // horizontal scrolling speed (higher = slower)
var leftdist = 10; // distance to left edge of window
var topdist = 10; // distance to top edge of window

if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = window.screen.availWidth - leftdist;
var winheight = window.screen.availHeight - topdist;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +","+
windowprops);
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
sizer.resizeTo(sizewidth, sizeheight);
sizer.location = website;
}
else
window.open(website,'mywindow');
}
// End -->
</SCRIPT>


Either one of these works perfectly in Fron Page.........

<!-- set up your links, either via text links or form buttons-->
<a href="#" onClick="expandingWindow('http://www.yahoo.com');return
false">Yahoo.com</a><br>
<form>
<input type="button" value="Freewarejava"
onClick="expandingWindow('http://www.freewarejava.com')">
</form>
------------------------------------------------------------------------------------------------

Here is where I am have a problem. How do I make the below Script feed
work.... When I click on any of the feed lines it does not open in a second
window. I have the script code also in a layer <div></div> So that I can
position it anywhere on the page.

<div>
<script type="text/javascript"
src="http://www.NotASearchEngine.com/newsfeed/35.js"></script><script
type="text/javascript"
src="http://www.NotASearchEngine.com/newsfeed/14.js"></script>
</div>

onClick=expandingWindow... is what I am after.

Gil
 
R

Ronx

the expanding window script opens a pop-up window and displays a page
in it.
You will need to create a page containing just your feeds, and use the
expanding window script to display that page - which will then display
your feeds.

Example:
On the page linking to the feeds:
<!-- set up your links, either via text links or form buttons-->
<a href="#" onClick="expandingWindow('myfeedpage.htm');return
false">Feeds</a>

and on myfeedspage.htm

<html>
<head>
<title>Feeds</title>
</head>
<body>
<div>
<script type="text/javascript"
src="http://www.NotASearchEngine.com/newsfeed/35.js"></script>
<script type="text/javascript"
src="http://www.NotASearchEngine.com/newsfeed/14.js"></script>
</div>
</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top