Created links in an HTML document to call other HTML documents. When running in IE5 I don't have a problem. When running in BYOND, I click on the links and nothing happens.
If this is what it's supposed to do, then I'm guessing I'll need to use the Topic() process to make pull up the other documents, but I'm still having problems understanding how to do this (which is why I tried to do it without the Topic() function).
Here's the code:
mob/verb/help() var/C var/P P=prompt("What Category?") in list("race","cancel") switch(P) if("race") C="race" if(C == "race") P=prompt("What Topic?") in list("overview","dwarf","elf","goblin","halfling","human","t roll","cancel") switch(P) if("overview") usr << browse(file("helpRace.html")) if("dwarf") usr << browse(file("helpRaceDwarf.html")) if("elf") usr << browse(file("helpRaceElf.html")) if("goblin") usr << browse(file("helpRaceGoblin.html")) if("halfling") usr << browse(file("helpRaceHalfling.html")) if("human") usr << browse(file("helpRaceHuman.html")) if("troll") usr << browse(file("helpRaceTroll.html")) return SAMPLE FROM ONE HTML DOCUMENT THAT LINKS OUT: <A HREF="helpRaceGoblin.html">Gargun</A> | Halflings | Humans | Khuzul | Sindarin | Trolls
</<></<></<></<></< ></<></<>
Path:
res://C:\WINNT\system32\shdoclc.dll/dnserror.htm#file:// F:\BYOND\key\cache\helpRaceDwarf.html
The actual file is located here:
F:\dev\world\helpRaceDwarf.html
I copied the file into F:\BYOND\key\cache and it worked fine. Any way to get the desired effect without having to copy the pages into the cache?
Desired Effect:
Link to help pages from the browser window in byond
- -