Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re: FN-FORUM: Javascript problem (another one!)

date posted 8th August 2003 16:07

Thanks very much Luke, I'm not sure how clear it is yet, but I'll give it a
go.... basically to describe what you would have seen....

I have a div on the left hand side of the page which contains a list of
links - linking to text telling people what they need to know to do an
online (French) course. The idea is that when the link is clicked the text
appears in the div specially made for it on the right hand side of the
screen - so the info is available if it's needed and there's no large scroll
required...

So I shall attach the code to the things I have and see what happens!

Thanks very much, again for the help, it's driving me nuts!
Nita
;o)
----- Original Message -----
From: "Luke Perman" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Friday, August 08, 2003 2:30 PM
Subject: Re: FN-FORUM: Javascript problem (another one!)


>
> hi nita,
>
> yea, i'm not sure what the problem is -- i have the same trouble with
> my new re-designed website - i've converted the whole site to be CSS
> driven and now it freezes up in IE on the mac! everything works fine
> in Windoze though -- so i'm gonna have to do some figuring out on the
> mac side..
>
>
> here's a really simple piece of javascript for swapping the visibility
> of a DIV:
>
>
> function swapIn(thisone) {
> theLayer=thisone+"layer";
> document.all[theLayer].style.visibility = 'visible';
> }
>
> function swapOut(thisone) {
> theLayer=thisone+"layer";
> document.all[theLayer].style.visibility = 'hidden';
> }
>
>
>
> #biglayer { visibility: hidden; }
>
>
>
> and in the BODY, the DIV needs to be named 'whateverlayer', then
> simply add the onClick or onMouseover property to your link that causes
> the action:
>
> la la la la la
>
>
>
>
> you may have to do some fiddling with the 'position' and 'display'
> attributes in your CSS to get the DIV to behave as you want it to...
>
> the reason i create the variable "theLayer" inside the function is that
> i usually have an image change associated with the layer swap also, and
> so the functions 'swapIn' and 'swapOut' will have the extra line:
>
> document.images[thisone].src = myImages[3].src;
>
> to handle that action in the same breath, having the image named the
> same as the layer (minus the 'layer' suffix of course...)
>
>
> er, i hope that's all clear hehe
> luke
>
>
> On Friday, August 8, 2003, at 02:10 PM, Nita wrote:
>
> > Thanks Luke, that's great, I was considering using the visibilty of the
> > layers as my next option.... I shall use this instead... I'd be really
> > grateful for code snippets, thanks very much!
> >
> > Sorry about the crashing! Is there any known reason why it might do
> > that?
> > I've had a similar problem with another page I made using stylesheets
> > which
> > crashed a friends Mac...
>
>
> ==========
> fido.net are pleased to sponsor these Freelancers messages. For all
> your web hosting needs check out http://www.fido.net/ with hosting
> packages starting from just £46.95 a year including VAT.
> Free 0871 Fax2Email numbers also available online!
> http://www.fido.net/ - the internet made simple! - 0800 1072 666
>
> To advertise here: http://www.freelancers.net/advertising.html
>
>



Messages by Day
August 31st 2003
August 30th 2003
August 29th 2003
August 28th 2003
August 27th 2003
August 26th 2003
August 25th 2003
August 24th 2003
August 23rd 2003
August 22nd 2003
August 21st 2003
August 20th 2003
August 19th 2003
August 18th 2003
August 17th 2003
August 16th 2003
August 15th 2003
August 14th 2003
August 13th 2003
August 12th 2003
August 11th 2003
August 10th 2003
August 9th 2003
August 8th 2003
August 7th 2003
August 6th 2003
August 5th 2003
August 4th 2003
August 3rd 2003
August 2nd 2003
August 1st 2003


Messages by Month
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003


Messages by Year
2009
2008
2007
2006
2005
2004
2003
2002
2001
2000