DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • December 14, 2017, 04:43:05 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Colored ADDNAV entries don't parse right  (Read 2249 times)
0 Members and 1 Guest are viewing this topic.
markneill
Guest
« on: April 27, 2004, 06:26:22 PM »

Billy, I figured out why I was having those display problems back a while, it seems there's a "bug" with the DIV/SPAN code when formatting navs with the non-standard color.

A nav entry looks something like:
     The Forest

The HTML code for this looks like:

Code:
<span name=greentext>T</span><span name=bluetext>he Forest</span>


Over in the CoFD files, as an example, there are navs that are explicitly set to a different color with the `X codes.  Unfortunately, the parser munges them, and the SPAN tags are nested.  Opera, at least, doesn't display them right, which means, I would assume (since Opera is the most W3C compliant browser going at the moment) that SPAN isn't a nestable tag.  What I see in that case is something like...

Code:
<SPAN name=greytext>The <SPAN NAME=greentext>N</SPAN>orth tower</SPAN>

Which makes logical sense to me, but makes no sense to my browser.  In this case, where the nav is defined as:

Code:
addnav("N?`7The North Tower","blah.php")

what I see on my screen is something like:

The N

the "orth Tower" gets chopped off in the SPAN tags and never displayed.

Anyone familiar enough with the output() code to figure out what's going on here and work up a patch to 0.9.7?
Logged
anpera
Guest
« Reply #1 on: April 27, 2004, 07:25:25 PM »

Hmmmmm ... just a guess ... if you set a letter and a specific color for a nav, what is the result when using:

addnav("N?`7The N`7orth Tower","blah.php");

?

For IE there is no difference in what is displayed.
Logged
Kendaer
Guest
« Reply #2 on: April 27, 2004, 08:03:13 PM »

Hmmmmm ... just a guess ... if you set a letter and a specific color for a nav, what is the result when using:

addnav("N?`7The N`7orth Tower","blah.php");

?

For IE there is no difference in what is displayed.

Actually, what you want to do is:
addnav("N?`7The`0 N`7orth Tower");
The reason is that the hot-key highlight is done specially and doesn't know about the standard color codes.

Logged
bwatford
Guest
« Reply #3 on: April 28, 2004, 06:02:58 AM »

This error of using span tags will be taken out in the beta release of COFD. Before release I am going to go through each mod and clean the code along with insert proper credits for each one. There is alot of different authors that are contributing to this project and in it's current state I wasn't suprised that this happened. Still testing everything and everything so far seems to be working without error now. We have just a few more areas to finish before the first Beta is released (Hopefully June 1st) The first Beta will include The Sorth Tower (Tavern,Kitchen,Swamp, Hall Of Medicine), The Courtyard (Merchants, Zeus Statue, Statue Garden, Father Time), The Outergrounds (Seymore's Cementary, Seymore's Hut, Moulin Verde, Poseidon Pool, The Pit), Quest framework

After this each tower will be a snap in as they are finished along with the inner buildings the outer buildings and finally keep.


Hey this turned out to be a castle update too... hehehe

« Last Edit: April 28, 2004, 06:04:20 AM by bwatford » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
23 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search