Is there a way to convert this javascript code to jquery?
Is there a way to convert this javascript code to jQuery?
do开发者_运维问答cument.writeln('Nu te teme, căci Eu sunt cu tine; nu te uita cu îngrijorare, căci Eu sunt Dumnezeul tău; Eu te întăresc, tot Eu îţi vin în ajutor. Eu te sprijin cu dreapta Mea biruitoare.”');
document.write('<a onclick="var w=window.open(this.href);w.focus();return false;" href="http://biblia.resursecrestine.ro/citeste/isaia/41">Isaia 41:10</a>');
In joomla 1.5 i was able to insert the above javascript; not anymore in joomla 1.6. This needs to be converted in jQuery somehow.
In jQuery, the idea is to locate where you want to put what and insert it:
$("mydiv").append("bla bla bla");
I think that you need a better understanding of the Joomla framework. I know nothing about it, but by simply reading the changelist, I was able to gather that Joomla doesn't (by default) incorporate jQuery, they've adopted Mootools.
Asking a question (repeatedly, and a vague one at that) with zero understanding of the actual problem will more times than not lead you in the wrong direction.
So, my advice is to do a little more research on the framework you're using and maybe some on Javascript as well. In doing so, you might also figure out the answer yourself.
精彩评论