Jump to content
  • Advertisement
Sign in to follow this  
gamerking

[web] need urgent help

This topic is 4690 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
From what I see you have two 'ies. That's stupid, you'll need only one of these. =P

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
*<body>'ies
Sorry for the typo.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!