AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

This forum's code expand feature

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
TOTAL



Joined: 26 Sep 2007
Posts: 39

PostPosted: Thu Mar 20, 2008 12:19 am    Post subject: This forum's code expand feature Reply with quote

Definitely off topic.

I like the Code Expand as it is done in this forum because

you can expand by clicking on a part of the wrapped code, too
it works flawlessly in Opera browser.

Could anyone tell me where I could get such a piece of css , meeting the above criteria?

I have already experimented with some codes available on internet, but didn’t like any of them.
And this implementing process is very time consuming (adapt css, modify html) each time..


And, in case anyone knows, will using such a code affect indexing in google, etc?
After all, some text is not visible until expanded, which the indexing engines are said to be sensitive to.
Back to top
View user's profile Send private message
Oberon



Joined: 18 Feb 2008
Posts: 458

PostPosted: Thu Mar 20, 2008 12:39 am    Post subject: Reply with quote

It was created in response to Elevator_Hazard's suggestion in the topic titled "Forum [code] sections: green comments and scrollbars," and the source can be found at http://www.autohotkey.com/forum/code.js

Quote:
Could anyone tell me where I could get such a piece of css , meeting the above criteria?
Use the overflow: auto; property on a fixed width element, or for CSS3 supporting browsers word-wrap: break-word;

Quote:
will using such a code affect indexing in google, etc?
No because the text is hidden only on the client-side with Javascript. Google crawls web pages with the same understanding as if it were viewed in a text browser such as Lynx. Ideally you would use semantic <code> or <pre> tags so search engines would not treat it as readable text.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group