Home › Forum › Plugin e temi di WP › Javascript: quali sono?
-
AutorePost
-
-
3 Febbraio 2010 alle 7:28 #12874Mk3000Partecipante
Sono rimasto entusiasmato dalla modalità in cui sono state inserite le news in questo sito di Licensing ( http : //w w w.licensingitalia. it/ ) Potreste dirmi quali Javascript vengono usati per le sezioni FOCUS e NEWS ? O comunque un modo per poter modificare la mia home page facendola somigliare piu ad un sito: esistono plugin in merito? Ve ne sarei eternamente grato!
-
3 Febbraio 2010 alle 7:53 #71114SteveAglAmministratore del forum
Parrebbe della roba fato con mootols… non credo troverai nulal di già fatto esattamente simile a quello… sotto WP poi è meglio usare jquery… ma anche li nulal di già fatto anche se cercando slider plugin wordpress forse si trova qualche cosa… ovviamente il tutto potrebbe richiedere di essere adattato al proprio sito a livllo di graica htnl css etc… quindi presuppne una certa conoscenza di queste cose oltre che magari di php e javascript..
-
3 Febbraio 2010 alle 8:17 #71115Mk3000Partecipante
Capisco, sigh ;_;
Vorrei mettere, allora, qualcosa sopra gli articoli pubblicato nella mia HomePage. Mi suggerite qualcosa?
Per dare un pizzico di originalità al sito senza il solito elenco di ultimi post pubblicati… Diciamo, stile Portale piu che blog. Esistono script/plugin ?
-
3 Febbraio 2010 alle 8:39 #71116Mk3000Partecipante
L’ ho trovato *_*
<div style=”background-color:#FFFFDD;width:155px”><center>Down Up
</div>
<SCRIPT language=”JavaScript1.2″>
//specify speed of scroll (greater=faster)
var speed=2
iens6=document.all||document.getElementById
ns4=document.layers
if (iens6){
document.write(‘<div id=”container” style=”position:relative;width:155px;height:160px;overflow:hidden;border:2px ridge white”>’)
document.write(‘<div id=”content” style=”position:absolute;width:155px;left:0px;top:0px”>’)
}
</script>
<ilayer name=”nscontainer” width=155 height=160 clip=”0,0,155,160″>
<layer name=”nscontent” width=155 height=160 visibility=hidden>
<!–INSERT CONTENT HERE–>
<p><font size=”2″ face=”Arial”>-</font><font size=”2″ face=”Arial”> DHTML is the
combination of HTML, JavaScript, and CSS</font></p>
<p><font size=”2″ face=”Arial”>- DOM stands for Document Object Model</font></p>
<p><font size=”2″ face=”Arial”>-</font><font size=”2″ face=”Arial”> DHTML allows
content on a page to change on the fly, without reloading the page</font></p>
<p><font size=”2″ face=”Arial”>- CSS allows for the separation between content
definition and formatting</font></p>
<p><font size=”2″ face=”Arial”>- CSS stands for Cascading style sheet</font></p>
<p><font size=”2″ face=”Arial”>- </font><font size=”2″ face=”Arial”> provides free, cut and paste DHTML scripts</font></p>
<!–END CONTENT–>
</layer>
</ilayer>
<script language=”JavaScript1.2″>
if (iens6){
document.write(‘</div></div>’)
var crossobj=document.getElementById? document.getElementById(“content”) : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (window.moveupvar) clearTimeout(moveupvar)
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+”px”
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout(“movedown()”,20)
}
function moveup(){
if (window.movedownvar) clearTimeout(movedownvar)
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+”px”
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout(“moveup()”,20)
}
function stopscroll(){
if (window.moveupvar) clearTimeout(moveupvar)
if (window.movedownvar) clearTimeout(movedownvar)
}
function movetop(){
stopscroll()
if (iens6)
crossobj.style.top=0+”px”
else if (ns4)
crossobj.top=0
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility=”show”
}
window.onload=getcontent_height
</script>
ma come faccio a collegarlo ai miei post? ovvero senza che io stia li sempre a modificare l’HTML c è un modo per automatizzare tutto? ;_;
-
3 Febbraio 2010 alle 13:13 #71119gius1983Partecipante
credo che tra poco qualcuno cancellerà la tua ultima risposta. è sbagliato incollare tutto quel codice…soprattutto perchè ogni tema è diverso dall’altro..e quindi è impossibile darti una mano “cosi”
cmq 1 mio consiglio…se vuoi un sito più “portale” che blog tanto vale rivolgerti ai tanti siti che vendono bei temi, diversi dal classico layout “blog”.
girando si trovao temi (più assistenza) anche partire di 10 dollari, che son cmq meno di 10 euro
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.