non sapevo se postare qui o nel forum php, se ho sbagliato sezione sorry...
dunque, io ho un file pippo.js formattato così:
codice:
var LOOK = {
// scroller box size: [width, height]
'size': [100, 100]
},
BEHAVE = {
// autoscroll - true, on-demand - false
'auto': true,
// vertical - true, horizontal - false
'vertical': true,
// scrolling speed, pixels per 40 milliseconds;
// for auto mode use negative value to reverse scrolling direction
'speed': 2
},
// a data to build scroll window content
ITEMS = [
{ // file to get content for item from; if is set 'content' property doesn't matter
// only body of HTML document is taken to become scroller item content
// note: external files require time for loading
// it is RECOMMENDED to use content property to speed loading up
// please, DON'T forget to set ALL IMAGE SIZES
// in either external file or in 'content' string for scroller script
// to be able to estimate item sizes
'file': '',
'content': 'news2',
'pause_b': 3,
'pause_a': 0
},
{
'file': '',
'content': 'news1',
'pause_b': 3,
'pause_a': 0
}
]
per chi lo conosce e lo usa è lo script tigrascroller, e lo vorrei usare per far scorrere le mie news all'interno del div creato.
Solo che al posto di news1 e news2 io vorrei mettere una variabile php, ma se metto ad esempio <?php echo "ciao mamam"; ?> non funziona più nulla
quindi sapete come posso fare per passare una variabile php all'interno di quel codice?
Grazie in anticipo!