Forum Moderators: phranque

Message Too Old, No Replies

where can i find this script?

         

byepolar

1:25 pm on Mar 17, 2003 (gmt 0)

10+ Year Member



I have a really long intro on my homepage. Is there a script that allows for users to click a link, for example "More ..." and instead of opening in a new window, it just shows the entire introduction on the page e.g. giving the appearance of resizing the page to show the whole intro

Alternative Future

1:34 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think this should do what you are looking for:

<span id="more" onclick="show('moreInfo'); hide('more')">More info >></span>

<span id="moreInfo" style="display:none">Hidden content here
<span onclick="hide('moreInfo'); show('more')"><< Less info</span>
</span>

HTH,

-gs

Birdman

2:03 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That method could be interpreted as spamming, even though that is not what you intend to do.

If you have that much info on you home page it may be better to move some of the info to other pages and point your MORE links to them.

Just an opinion ;)

Alternative Future

2:16 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I hope not :( My site is full of them:
Where each client has more info associated with his or her premises I felt by keeping it hidden it used less real estate on the page, and left it to the visitor to decide whether they wanted to see more info on that particular client...

Oh well we shall find out at the next dance when the results are used on google as it is the first time that google has had access to these pages..

[added]Obviously if anyone else has been affected by using this and felt the pain of googlebot for doing so i would be really interested in knowing[/added;

-gs

keyplyr

7:00 am on Mar 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I've been using JS and CSS to accomplish much the same thing:

<a href="javascript:void(0);" onclick="document.getElementById('info1').style.display = 'block'">more info</a> <div id="info1" style="display:none"><br>
blah blah blah...</div>

So far, this method has survived 6 crawls.