Click to See Complete Forum and Search --> : taskbar status display


feafee
05-21-2003, 12:03 PM
how do display on the status bar that the link was clicked and the file was opened?

<HTML>
<HEAD>
<TITLE>Tutorial Menu</TITLE>

<SCRIPT LANGUAGE="JavaScript">
<!-- HIDE FROM INCOMPATIBLE BROWSERS

function confirmFolderChange( ) {
return confirm ("Are you sure you want to display this Folder?");
}

// STOP HIDING FROM INCOMPATIBEL BROWSERS -->
</SCRIPT>

</HEAD>

<BODY BGCOLOR=#C6EFF7 BACKGROUND=sprt1.gif>
<BODY TEXT="BLACK" BGCOLOR=#123456 LINK="BLACK" VLINK="BLACK" ALINK="BLACK">
<BASE TARGET="MenuWin">

<B><P><A HREF="Tutorial1.html" onClick="return confirmFolderChange( );" onMouseOver="status = 'This link opens the Tutorial "1" page'; return false;" onMouseOut="status = 'You did not open the Tutorial "1" page!!'; return true;">Tutorial Chapter 1</A></P>

<B><P><A HREF="Tutorial2.html" onClick="return confirmFolderChange( );" onMouseOver="status = 'This link opens the Tutorial "2" page'; return false;" onMouseOut="status = 'You did not open the Tutorial "2" page!!'; return true;">Tutorial Chapter 2</A></P>

<B><P><A HREF="Tutorial3.html" onClick="return confirmFolderChange( );" onMouseOver="status = 'This link opens the Tutorial "3" page'; return false;" onMouseOut="status = 'You did not open the Tutorial "3" page!!'; return true;">Tutorial Chapter 3</A></P>

<B><P><A HREF="Tutorial4.html" onClick="return confirmFolderChange( );" onMouseOver="status = 'This link opens the Tutorial "4" page'; return false;" onMouseOut="status = 'You did not open the Tutorial "4" page!!'; return true;">Tutorial Chapter 4</A></P>

<B><P><A HREF="Tutorial5.html" onClick="return confirmFolderChange( );" onMouseOver="status = 'This link opens the Tutorial "5" page'; return false;" onMouseOut="status = 'You did not open the Tutorial "5" page!!'; return true;">Tutorial Chapter 5</A></P>

<B><P><A HREF="Tutorial6.html" onClick="return confirmFolderChange( );" onMouseOver="status = 'This link opens the Tutorial "6" page'; return false;" onMouseOut="status = 'You did not open the Tutorial "6" page!!'; return true;">Tutorial Chapter 6</A></P>

</BODY>
</HTML>



any ideas appreciated,

jenny

Greelmo
05-21-2003, 12:51 PM
i'm not sure i totally understand what you are asking... are you asking how to display some text on the status bar when certain events occur?

fakeName
05-21-2003, 02:05 PM
I used escaped single quotes in the mouseOvers. Double quotes were causing an error.

It is less cumbersome to pass the page number to the function rather than writing out:
"This link goes to page Foo" for every link, and "You did not click page Foo" for every cancel. It also means you don't get the "You did not..." mesage onMouseOut, just when the user clicks cancel.

You were close.

<HTML>
<HEAD>
<TITLE>Tutorial Menu</TITLE>

<SCRIPT LANGUAGE="JavaScript">
<!-- HIDE FROM INCOMPATIBLE BROWSERS
msg = "";


function confirmFolderChange(tutNum ) {
msg="";

var didConfirm = confirm ("Are you sure you want to go to Tutorial " + tutNum + " ?");

if(didConfirm ) {
msg="";
}
else {
msg = "You did not open the tutorial " + tutNum + " page.";
return false;

}

}


// STOP HIDING FROM INCOMPATIBEL BROWSERS -->
</SCRIPT>

</HEAD>

<BODY BGCOLOR=#C6EFF7 BACKGROUND=sprt1.gif>
<BODY TEXT="BLACK" BGCOLOR=#123456 LINK="BLACK" VLINK="BLACK" ALINK="BLACK">
<BASE TARGET="MenuWin">

<B><P><A HREF="Tutorial1.html" onClick="return confirmFolderChange('\'1\'');" onMouseOver="status = 'This link opens the Tutorial \'1\' page'; return true;" onMouseOut="status = msg">Tutorial Chapter 1</A></P>

<B><P><A HREF="Tutorial2.html" onClick="return confirmFolderChange('\'2\'');" onMouseOver="status = 'This link opens the Tutorial \'2\' page'; return true;" onMouseOut="status = msg">Tutorial Chapter 2</A></P>

<B><P><A HREF="Tutorial3.html" onClick="return confirmFolderChange('\'3\'');" onMouseOver="status = 'This link opens the Tutorial \'3\' page'; return true;" onMouseOut="status = msg">Tutorial Chapter 3</A></P>

<B><P><A HREF="Tutorial4.html" onClick="return confirmFolderChange('\'4\'');" onMouseOver="status = 'This link opens the Tutorial \'4\' page'; return true;" onMouseOut="status = msg">Tutorial Chapter 4</A></P>

<B><P><A HREF="Tutorial5.html" onClick="return confirmFolderChange('\'5\'');" onMouseOver="status = 'This link opens the Tutorial \'5\' page'; return true;" onMouseOut="status = msg">Tutorial Chapter 5</A></P>

<B><P><A HREF="Tutorial6.html" onClick="return confirmFolderChange('\'6\'');" onMouseOver="status = 'This link opens the Tutorial \'6\' page'; return true;" onMouseOut="status = msg">Tutorial Chapter 6</A></P>

</BODY>
</HTML>