On 30 Sep 98, at 16:26, Brent Eades wrote:

> function links () {

>       linkline = GetCookie('linkline')

>       if (linkline == "line") {
>       document.write ("underline");

> [snip] 

> This works fine when I call it from the body of the document, i.e., 
> <script>links()</script> -- the correct value for the 'linkline' cookie is 
> written to the screen. So I know the cookie is being set and retrieved 
> correctly.  The next section of the script writes the stylesheet stuff to 
> the document head:

-- snip --

> Etc.  So where the "????" is above I want to write in the string returned 
> by GetCookie('linkline'), but I just can't make it happen.  Or whether it's 
> even possible to write to an existing 'document.write' statement.  Or what 
> the hell.  Sigh.

-- snip --

> Suggestions from any of you progammer mavens out there?

OK... I can't give you THE ANSWER I should know it... but well 
since I'm a programmer now I'm programming and a deadline is 
reallllly near and well maybe tomorrow when I'll miss my deadline 
and oh you know...

Technically you're out of scope...

JavaScript is a near parent of Java that is a near parent of C++ 
etc.. that's why I know the problem...

if you write... pseudocode

function something
{

variable
//here variable exist
}

//here variable doesn't exist
something else

-------------------

you can do in such way

variable declaration
//declaration could be also assignment
//sorry currently I'm thinking in VBScript
//and I'm not fluent in JavaScript and my pseudocode is pseudo 
//C++ and my server is slow and I need to test and 

function something
{
variable assignment
// e.g. variable=7*8;
}

//here variable exist

Well when I'll finish my code I'll give a more complete satisfyig 
explanation... I hope...

And sorry for my mess...
-------------------------------------------
Ivan Sergio Borgonovo [EMAIL PROTECTED]
Webmaster Gorilla Bookstore http://www.gorilla.it
Tel. +39 2 3311105/34530455 Fax. +39 2 34531591
Via Mac Mahon 9, Milano, Italy
-------------------------------------------

____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to