yeahz Posted June 12, 2011 Report Share Posted June 12, 2011 Vai ir iespējams visus <a> pārvērst par "nofollow" linkiem, kuri ir kādā konkrētā DIV'ā? Quote Link to comment Share on other sites More sharing options...
briedis Posted June 12, 2011 Report Share Posted June 12, 2011 Hmm, nezinu, vai būs lielā jēga to darīt dinamiski (ar jQuery easy peasy - $("div a").attr("rel", "nofollow");), jo rāpuļi varbūt ne vienmēr izpildīs JS... Labāk, protams, būtu to darīt ar php un kādu regulāru izteiksmi. Quote Link to comment Share on other sites More sharing options...
rpr Posted June 13, 2011 Report Share Posted June 13, 2011 nu ar js pilnībā nav nekāda jēga likt. drīzāk ar dom un DOMElement::setAttribute() Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 13, 2011 Report Share Posted June 13, 2011 Briedi, kāpēc Tu domā, ka "rāpuļi" (pieņemu, ka boti) tāda gadījumā gribēs pildīt pašu "rel"? Ne jau vienīgais bots ir Google un Yahoo! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.