-
Font Color in User Defined Function
Hi,
I am loading text from an XML file with 500 records. This works fine, but these records average three links in each one. I am forced to create user defined functions for most of these links due to the length of the url. I would like to add the font color blue to each of the functions instead of inserting over a thousand font tags into the xml document.
I hope that's clear. Here's one of functions:
function L19550() {
getURL("http://samplelinkthatgoesonforever.htm");
}
The link works, but it would save me a ton of work if I could include the font color inside each of these functions.
Thanks a bunch,
Debbie
-
Sorry, it's not exactly clear. Could you post a sample?
-
Hi,
I'm probably underestimating you, but I think the example might just confuse things more. Let me see if I can clarify things.
1. I'm starting with an xml file.
Here's a section of it (with the definition shortened)
In this example, I needed to create a link from 49CFR 195.50:
<word>
<term>Accident</term>
<definition><![CDATA[Specific criteria defining events that are considered accidents are contained in <a href="asfunction:L19550">49CFR 195.50</a>.]]></definition>
<image>accident.jpg</image>
</word>
I couldn't just use the <a href=> tag to define the link from 49CFR 195.50 because the url is more than 127 characters.
So, I created a function called L19550 (in the first frame of my movie):
function L19550() {
getURL("http://urlThatGoesOnForever.htm");
}
Calling this function from the xml file works perfectly.
What I'd like to do is include something like <font color=blue> within the function along with the getURL.
There are only 6 or 8 functions, but I need to call these functions over a thousand times. I have to call the function to get the link to work. If I could define the font color within each function, I could avoid having to also add font tags to all of the links.
Thanks again,
Debbie
-
Okay...
Attached is a file from 'R Sam Gong' that is doing what I think you're looking to do.
Last edited by dawsonk; 08-22-2007 at 10:53 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|