Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash Button Nav Bar

Status
Not open for further replies.

Ram0135

Technical User
Apr 14, 2003
77
US
I have a navigation bar which is comprised of 2 flash movies. They link to mainFrame which is where I want it to go. Upon first loading the site, clicking on the links works fine. But after like 3 link presses... The links open in new windows. If i refresh the page it will return to normal (for awhile). PLEASE HELP! none of my movies have _blank as target frames...

Thanx
Ram0135
 
What is the exact code you're using?

Regards,

cubalibre2.gif
 
Here's the code:

*testsideframe.htm:
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>

<body>


<p align=&quot;center&quot;>Navigation System</p>
<p align=&quot;center&quot;><!-- ***** Begin:(c) Ramon Gutierrez Digital Clock***** -->
<SCRIPT LANGUAGE='JavaScript'>
function DigitalClock()
{

var newDate = new Date();
var intDay = newDate.getDay();
var intMonth = newDate.getMonth();
var intWeekday = newDate.getDate();
var intYear = newDate.getYear();
var intHours = newDate.getHours();
var intMinutes = newDate.getMinutes();
var intSeconds = newDate.getSeconds();
var strAMPM = 'AM';

var aryDayName = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var aryMonth = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

var int24Hours = intHours;

if (intHours > 11)
{
strAMPM = 'PM';
intHours = intHours - 12;
}

if (intHours == 0)
intHours = 12;

if (intMinutes <= 9)
intMinutes = '0' + intMinutes;

if (intSeconds <= 9)
intSeconds = '0' + intSeconds;

if (intWeekday <= 9)
var strDayNumber = '0' + intWeekday;
else
var strDayNumber = intWeekday;

if (intYear < 200)
{
intYear = intYear + 1900;
}

if (intMonth <= 9)
var strMonthNumber = '0' + (intMonth + 1);
else
var strMonthNumber = intMonth + 1;

var strDayName = new String(aryDayName[intDay]);
var strDayNameShort = strDayName.substring(0, 3);

var strMonthName = new String(aryMonth[intMonth]);
var strMonthNameShort = strMonthName.substring(0, 3);

var strYear = new String(intYear);
var strYearShort = strYear.substring(2, 4);
var strClock = '';

strClock = intHours + ':' + intMinutes + ':' + intSeconds + ' ' + strAMPM

if (document.layers)
{
strClock = &quot;<span style=';font-family:Arial;font-size:12pt;padding:2'>&quot; + strClock + &quot;</span>&quot;
document.layers.lyrClock.document.write(strClock);
document.layers.lyrClock.document.close();
}
else if (document.all)
spnClock.innerHTML = strClock;

setTimeout('DigitalClock()',1000)
}

window.onload = DigitalClock;
</SCRIPT>

<LAYER ID='lyrClock' bgcolor=''></LAYER>
<SPAN ID='spnClock' style=';font-family:Arial;font-size:12pt;padding:2'></SPAN>
<!-- ***** End:(c) Ramon Gutierrez ***** --></p>
<p align=&quot;center&quot;>Classes
<object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
codebase=&quot; width=130 height=196>
<param name=movie value=&quot;servo.swf?tarframe=mainFrame&exbackground=808080&makenavfield0=Academies&makenavurl0=\Academies.htm&makenavfield1=Art&makenavurl1=\Art.htm&makenavfield2=Drama&makenavurl2=\Drama.htm&makenavfield3=Photo&makenavurl3=\Photo.htm&makenavfield4=Video&makenavurl4=\Video.htm&makenavfield5=Project Gal&makenavurl5=\Projects_Gal.htm&makenavfield6=Homework&makenavurl6=\Teach_select.cfm&quot;>
<param name=loop value=false>
<param name=menu value=false>
<param name=quality value=high>
<param name=scale value=noborder>
<param name=salign value=LT>
<param name=wmode value=transparent>
<param name=bgcolor value=#000000>
<embed src=&quot;servo.swf?tarframe=mainFrame&exbackground=808080&makenavfield0=Academies&makenavurl0=\Academies.htm&makenavfield1=Art&makenavurl1=\Art.htm&makenavfield2=Drama&makenavurl2=\Drama.htm&makenavfield3=Photo&makenavurl3=\Photo.htm&makenavfield4=Video&makenavurl4=\Video.htm&makenavfield5=Project Gal&makenavurl5=\Projects_Gal.htm&makenavfield6=Homework&makenavurl6=\Teach_select.cfm&quot; loop=false menu=false quality=high scale=noborder salign=LT wmode=transparent bgcolor=#000000 width=130 height=196 type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot; </object>
Misc.
<object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
codebase=&quot; width=130 height=196>
<param name=movie value=&quot;servo.swf?tarframe=mainFrame&exbackground=808080&makenavfield0=Brochure&makenavurl0=/CAA_Brochure.htm&makenavfield1=Application&makenavurl1=/CAA_App.htm&makenavfield2=Newsletter&makenavurl2=/CAA_Newsletter.htm&makenavfield3=Photo Links&makenavurl3=/Misc_Photos.cfm&makenavfield4=Escrip&makenavurl4=/Escrip.cfm&makenavfield5=ShoutOuts&makenavurl5=/ShoutOuts.cfm&makenavfield6=Privacy Policy&makenavurl6=/Privacy.cfm&quot;>
<param name=loop value=false>
<param name=menu value=false>
<param name=quality value=high>
<param name=scale value=noborder>
<param name=salign value=LT>
<param name=wmode value=transparent>
<param name=bgcolor value=#000000>
<embed src=&quot;servo.swf?tarframe=mainFrame&exbackground=808080&makenavfield0=Brochure&makenavurl0=/CAA_Brochure.htm&makenavfield1=Application&makenavurl1=/CAA_App.htm&makenavfield2=Newsletter&makenavurl2=/CAA_Newsletter.htm&makenavfield3=Photo Links&makenavurl3=/Misc_Photos.cfm&makenavfield4=Escrip&makenavurl4=/Escrip.cfm&makenavfield5=ShoutOuts&makenavurl5=/ShoutOuts.cfm&makenavfield6=Privacy Policy&makenavurl6=/Privacy.cfm&quot; loop=false menu=false quality=high scale=noborder salign=LT wmode=transparent bgcolor=#000000 width=130 height=196 type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot; </object>
</p>
<a href=&quot; border=&quot;0&quot; src=&quot; width=&quot;1&quot; height=&quot;1&quot;></a>
</body>
</html>

Please Help!

Thanks,
Ram0135
 
The code is in there. Look where it says servo.swf? the code after it then processes the template to create my buttons.

-Ram0135
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top