2011-12-03, 05:07 PM
2011-12-03, 05:12 PM
Probably. Hiding it with CSS means it doesn't show in the browser, but it's still there. Browsers don't run javascript and probably ignore CSS like this too. They read what's on the page, not how it looks.
2011-12-03, 05:32 PM
thanks
2011-12-03, 10:45 PM
Although it's worth noting that if you are using this to hide keywords placed only for SEO purposes, certain search engines (google included), will pick up on it and penalize your site in their rankings. Same goes for hiding things by setting the text to the same colour as the background.
2011-12-03, 11:01 PM
Indeed, don't try any of this stuff. Google will find you one way or another. Even the sneakiest trick will get you caught.
2011-12-03, 11:52 PM
Absolutely a bot can crawl that content. And as Charlie Hadden pointed out some SE's like Google might penalize you for doing so.
btw Fábio there is a YT embed MyCode now.
btw Fábio there is a YT embed MyCode now.
2011-12-04, 10:05 AM
ahh, thanks guys
doing this will be okay ?
doing this will be okay ?
<script>
function show(){
document.getElementByd('myDiv').style.display="block";
}
</script>
<a href="#" onclick="show()"> Software Collection </a>
<div id="myDiv" style="display:none;">
A massive list of software collection
1. mybb
2. bla bla
etc etc
</div>
2011-12-04, 04:06 PM
This
document.getElementByd('myDiv').style.display="block";
should be like this;document.getElementByid('myDiv').style.display="block";
Notice the i in between the "By" and "d". This is because you're referring it to find the element by its id attribute.2011-12-04, 07:09 PM
(2011-12-04, 10:05 AM)sunjava1 Wrote: [ -> ]ahh, thanks guys
doing this will be okay ?
<script> function show(){ document.getElementByd('myDiv').style.display="block"; } </script> <a href="#" onclick="show()"> Software Collection </a> <div id="myDiv" style="display:none;"> A massive list of software collection 1. mybb 2. bla bla etc etc </div>
Probably not. Remember a bot doesn't visit a page as you would with the output of a browser, instead, it retrieves the contents of the page as your browser does. What I mean is, if you have for example:
<!doctype HTML>
<html>
<head>....</head>
<div style="visibility: none;">
This is what I want a search bot not to see
</div>
</html>
When the bot crawls your page, it will retrieve the code above (give or take certain lines, depending how it retrieves it.) It will then filter through the code, removing things that it doesn't want. A container such as the div above is available to it, and depending on its algorithm for "punishment," it might notice that you intended the container to be hidden, and in the end, you get penalized for it. Do note however, if you are hiding the container for the purposes of, for example, a "show more" or "show less" feature, don't worry about getting penalized for it, they generally take such things into consideration.
All the best,
Imad Jomaa
2011-12-05, 11:05 AM
(2011-12-04, 04:06 PM)Yaldaram Wrote: [ -> ]This
should be like this;document.getElementByd('myDiv').style.display="block";
Notice the i in between the "By" and "d". This is because you're referring it to find the element by its id attribute.document.getElementByid('myDiv').style.display="block";
Yeah I skipped " i " because in haste of writing a demo. Does it works for small " i " too ?
I think its getElementById('myDiv')
Thank you all I got it