Forum Moderators: open

Message Too Old, No Replies

vlinks acting very funny.

         

bmlove21090

7:36 pm on Aug 29, 2005 (gmt 0)

10+ Year Member



Hey all, I'm new here but have what is probaly an old question. I have an html page I created in dreamweaver and have set the vlinks color to cyan and the active links to green in the body tag....no problem right. Well, here's what happens. While I keep the page open and branch back an forth to the pages the links point to everything works fine. Let's say I see 5 of the 10 links on the page. works great, UNTIL I close the window in I.E6 and reopen the 'link page' ---IT MARKS ALL OF MY LINKS AS VISITED (cyan) AND I HAVE ONLY SEEN 5 OF THE 10....what? I'm not using style sheets, it is str8 HTML code.

I have checked the tools/colors option on the browser and it is not connected to the colors.
I'm at a loss....any thoughts.

thanks in advance.

here's my code:

<!-- saved from url=(0013)about:internet -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>DRC Simulation Lesson Menu</title>
<script type="text/javascript">
<!-- Begin
function fullScreen(theURL) {
window.open(theURL, '', 'fullscreen=yes, scrollbars=no');
}
// End -->
</script>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW ¦¦ innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head>

<body bgcolor="#000066" text="#FFFFFF" link="#FFFFFF" vlink="#00FFFF" alink="#00FF00" fullscreen="yes" scroll'no" leftmargin="0" topmargin="0" >
<div align="center">
<p>&nbsp;</p>
<p align="center"><font size="6" color="#FFFF00"><b><font face="Verdana, Arial, Helvetica, sans-serif">FiOS
Video For Dispatch</font></b></font></p>
<p align="center"><font size="6" color="#FFFF00"><b><font face="Verdana, Arial, Helvetica, sans-serif">CSG/ACSR
Application Training</font></b></font></p>
</div>

<p align="center"><img src="VZ_LOGO.jpg" width="236" height="118">
<table width="55%" border="0" align="center" bgcolor="#000066">
<tr>
<td colspan="2">
<div align="center">
<p>&nbsp;</p>
<p><font color="#333333"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="4" color="#FFFFFF">Click
on one of the topics below.</font></b></font><br>
<br>
</p>
</div>
</td>
</tr>
<tr>
<td width="6%"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" >1.</font></td>
<td width="94%"><a href="javascript:void(0);" onClick="fullScreen('CSGLogon_off_Walkthrough_Ver1_08.htm');"><font face="Verdana, Arial, Helvetica, sans-serif" size="4">Logon/off
- Walkthrough</font></a></td>
</tr>
<tr>
<td width="6%"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" >2.</font></td>
<td width="94%"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" ><a href="javascript:void(0);" onClick="fullScreen('CSGReview_Order_Wlkthru_Ver1_08.htm');">
Reviewing An Order - Walkthrough</a></font></td>
</tr>
<tr>
<td width="6%"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" >3.</font></td>
<td width="94%"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" ><a href="javascript:void(0);" onClick="fullScreen('CSGCompleting_Order_Wlkthru_Ver1_08.htm');">Completing
An Order - Walkthrough</a></font></td>
</tr>
<tr>
<td width="6%"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" >4.</font></td>
<td width="94%"><a href="javascript:void(0);" onClick="fullScreen('CSGReview_Order_Practice_Ver1_08.htm');"><font face="Verdana, Arial, Helvetica, sans-serif" size="4">Reviewing
An Order - Practice</font></a></td>
</tr>
<tr>
<td width="6%"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" >5.</font></td>
<td width="94%"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" ><a href="javascript:void(0);" onClick="fullScreen('CSGCompleting_Order_Practice_One_Ver1_08.htm');">Competing
An Order - Practice 1</a></font></td>
</tr>
<tr>
<td width="6%"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" >6.</font></td>
<td width="94%"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" ><a href="javascript:void(0);" onClick="fullScreen('CSGCompleting_Order_Practice_two_Ver1_08.htm');">Competing
An Order - Practice 2</a></font></td>
</tr>
<tr>
<td width="6%"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" >7.</font></td>
<td width="94%"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" ><a href="javascript:void(0);" onClick="fullScreen('CSGAssessment_Part1_Ver1_02.htm');">Assessment</a></font></td>
</tr>

</table>
<FORM>
<input type=button align="center" value="EXIT" onClick="javascript:window.close();" name="Exit">
</FORM>

</body>
</html>

encyclo

7:47 pm on Aug 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forums bmlove21090!

<a [b]href="javascript:void(0);"[/b] onClick="fullScreen('CSGLogon_off_Walkthrough_Ver1_08.htm');">Logon/off - Walkthrough</a>

The above snippet is one of the links in your page (I removed the font tag for clarity). As you can see, the actual link is to

javascript:void(0);
- as it is for all the links on the page. So, click one, and as all the links are the same, all become visited links.

The solution is to reproduce the link in the Javascript code within the standard href, and then add a

return false;
to the
onclick
event so the page doesn't get called twice. This has the double advantage of helping search engines and users with Javascript disabled to follow your site links correctly. Try this:

<a [b]href="CSGLogon_off_Walkthrough_Ver1_08.htm"[/b] onClick="fullScreen('CSGLogon_off_Walkthrough_Ver1_08.htm');[b]return false;[/b]">Logon/off - Walkthrough</a>

g1smd

9:51 am on Aug 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Another tip is that all of those <font> tags can be replaced with just 3 or 4 lines of CSS. That will simplify your page by a massive amount.

bmlove21090

2:32 pm on Aug 30, 2005 (gmt 0)

10+ Year Member



g1smd - I tried your code, and while it did eliminate all of the links changing to visited, even if I had not been there...the links I did visit did not hold their visited color...so now I have an other problem, trying to get them to keep their color. thks though at least I'm making some process.

bmlove21090

2:33 pm on Aug 30, 2005 (gmt 0)

10+ Year Member



sorry that last was for encylco, tks to you both for your suggestions. I've got to learn how to use those CSS, too. :)

bmlove21090

8:29 pm on Aug 30, 2005 (gmt 0)

10+ Year Member



Wellllll, after spending a few hours with this thing, it is now operating the way it was before, even with the corrections that I put in via encyclo...back to square one. this is a tough one. Have tried everything.

Conscientious Reject

9:46 pm on Sep 2, 2005 (gmt 0)

10+ Year Member



I am noticing that your links are calling a JavaScript function, with an onlick event handler. That function is what is actually loading your links, not the actual link it self. Instead, the href value is null - nothing. Which is hard for any server to even distinguish. Therefore the attributes in your body tag do nothing, because there isn't even a link using the href attribute that has any real value. It sees that there are links but can not tell if they have been visited or not. That's why I am not to fond of Dreamweaver. Because it uses large script for simple html functions. You are going to have to go back to the basics. First, erase the onclick event handler in every link. You can even trash the fullScreen function in the head. Replace every link with this <a href="whereIGO.htm">Link here</a> and this should work fine.

bmlove21090

5:48 pm on Sep 8, 2005 (gmt 0)

10+ Year Member



Conciencious Reject - please forgive me for not responding sooner as I have been in the hospital, had to have emergency surgery...feeling better now however.

You had a wonderful Idea and it does work, however, I have the need to launch the link being called in a new window and your answer does not allow me to do that. Part of the problem I now find is how to refresh the menu page when I come back to it from my other window...and don't know it that is possible. I do appreciate your help (as well as others) and it has led me down another path, not working completely yet either, but at least you got me to thinking :-)

bmlove

bmlove21090

6:25 pm on Sep 8, 2005 (gmt 0)

10+ Year Member



Addn'l information - target="_blank" doesn't work for me as I have to open the new window without any IE menus, scrollbars etc...has to be a really full screen - (note: I am simulating an application.)