[web] need urgent help

Started by
3 comments, last by gamerking 18 years, 6 months ago
hi heres my frames page's source
 <html>
<body bgcolor="000000">
<body onload="scrollNews('news', 0);">

<div id="news"><font color="#FFFFFF" size="3" face="Arial"news">
<h1>news</h1>

<a href="http://www.gamedev.net"/><font color="#FFFFFF" size="2" face="Arial">game devolpment resources</font></A>
<p><a href="http://www.raymanzone.com"/><font color="#FFFFFF" size="2" face="Arial">rayman's zone</font></a>

</div>





<style type="text/css">
#news {

position: absolute;
position: left;
visibility: visible;
z-index: 250;
top: 20px;
left: 25px;
height: 80px;
width: 150px;
clip: rect(0px, 100px, 60px, 0px);
border-width: 328x;
padding-top: 40px;

}
</style>


<script language="JavaScript">

function getObject( obj ) {


var strObj

if ( document.all ) {

strObj = document.all.item( obj );

} else if ( document.getElementById ) {

strObj = document.getElementById( obj );

}

return strObj;

}

var theTop = 20;

var theHeight = 100;

var theWidth = 150;

var theLeft = 650;

var toClip = 55;


function scrollNews( newsDiv, toMove ) {

theDiv = getObject( newsDiv.toString() );

if ( theDiv == null ) { return; }

if ( document.layers ) {

theDiv.clip.top = toMove;

theDiv.clip.bottom = toMove + toClip;

theDiv.top = theTop - toMove;

} else {

theDiv = theDiv.style;

theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)";

theDiv.top = theTop - toMove + 'px';

}

if ( ( theTop + theHeight - toMove ) < ( theTop - theHeight - 20 ) ) {

toMove = 0;

if ( document.layers ) {

theDiv.clip.top = theTop;

theDiv.clip.bottom = toClip;

theDiv.top = theTop

} else {

theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)";

theDiv.top = theTop + 'px';

}

}

toMove = (toMove + 1);

setTimeout("scrollNews('" + newsDiv + "'," + toMove + ")", 100);


}

</script>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><a href="story page.html">opionions</a>
<p><p> <A href="mattb0001@hotmail.com">contact us</a>


</html>


my problem is that when i click the link it only opens in that frame how do i open it in both?
Matt : mattb0001@hotmail.comClick me please
Advertisement
You can use target:

<a href="http://www.gamedev.net" target="_top">Go to GameDev</a>


The target window options are:
_self : Opens in the same window and same frame.
_top : Opens in the same window, taking the full window if there is more than one frame.
_parent : Opens in the parent frame.
_blank : Opens in a new window.
From what I see you have two 'ies. That's stupid, you'll need only one of these. =P
*<body>'ies
Sorry for the typo.
thanks guys heres the link

linky
Matt : mattb0001@hotmail.comClick me please

This topic is closed to new replies.

Advertisement