ghostrifle
Newbie
Posts: 1
Registered: 6/27/2006
Member Is Offline
|
| posted on 6/27/2006 at 04:09 PM |
|
|
text doesn't appear to it's full length
Hi there,
I'm generating scroller items via php and output it in the header, which looks like this then:
| Code: |
// a data to build scroll window content
var Tscr_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
// doesn't work in Opera
'file': '',
// string to be displayed as item content,
// is RECOMMENDED to be used as an alternative to 'file' property
'content': '<b>+++ saarbabes Newsticker +++</b>',
// pause duration when item top gets top of the scroller box, seconds
// ignored in on-demand mode while scrolling forward
'pause_b': 1,
// pause duration when item top gets top of the scroller box, seconds
// ignored in on-demand mode while scrolling forward
'pause_a': 0
},
{
'file' : '',
'content' : '<b>+++ ein newsticker eintrag +++</b>',
'pause_b' : 1,
'pause_a' : 0
},
{
'file' : '',
'content' : '<b>+++ Silvia ich hab dich lieb +++</b>',
'pause_b' : 1,
'pause_a' : 0
},
{
'file' : '',
'content' : '<b>+++ The size of a scrolling area, positioning and sources of internal control images (pause, resume, next, previo
+++</b>',
'pause_b' : 1,
'pause_a' : 0
},
{
'file' : '',
'content' : '<b>+++ Planning for Ubuntu Edgy +++</b>',
'pause_b' : 1,
'pause_a' : 0
},
{
'file' : '',
'content' : '<b>+++ Mandriva Linux 2007 Alpha Screenshot Tour +++</b>',
'pause_b' : 1,
'pause_a' : 0
},
{
'file' : '',
'content' : '<b>+++ Review: Apple's MacBook Pro +++</b>',
'pause_b' : 1,
'pause_a' : 0
},
{
'file' : '',
'content' : '<b>+++ Hallo alex +++</b>',
'pause_b' : 1,
'pause_a' : 0
},
null,
// add as many items here as you need.
// don't forget to separate them with commas, make sure there is no comma after the last item
];
|
Here's my scroll.tpl.js
| Code: |
var Tscr_LOOK = {
// scroller box size: [width, height]
'size' : [screen.width-30, 20],
// a length of a gap between two neighboring items, pixels
'distance' : 1,
'item_w' : 0,
// css classes for for item text
's_i':'TScrItem1',
// css classes for for scroller box
's_b':'TScrBody1',
// image for 'pause' control (autoscroll mode only)
// [left, top, width, height, sorce_file, mouseover_sorce_file]
'pa' : [360, 80, 16, 16,,'tsp_files/pixel.gif'],
// image for 'resume' control (autoscroll mode only)
// [left, top, width, height, sorce_file, mouseover_sorce_file]
're' : [360, 80, 16, 16,,'tsp_files/pixel.gif'],
// image for 'next item' control (autoscroll mode only)
// [left, top, width, height, sorce_file, mouseover_sorce_file]
'nx' : [380, 80, 16, 16,,'tsp_files/pixel.gif'],
// image for 'previous item' control (autoscroll mode only)
// [left, top, width, height, sorce_file, mouseover_sorce_file]
'pr' : [340, 80, 16, 16,,'tsp_files/pixel.gif']
},
Tscr_BEHAVE = {
// if scrolling mode is auto (true / false);
'auto' : true,
// if scrolling direction is vertical (true / false, false means horisontal)
'vertical' : false,
// scrolling speed, pixels per 50 miliseconds;
// for auto mode use negative value to reverse scrolling direction
'speed' : 2,
'interval' : 20,
'zindex':1,
// buttons visible on mouse over - true, always visible - false
'hide_buttons' : true
};
|
My problem is that the text doesn't get displayed to it's full length. It gets cut after X chars. But why ??
I set item_w to 0 and got the worst case, but if I increase the value more and more text gets displayed of an item. But hey ! I can't know how long a
scroller entry is. So what do I have to set so that all scroller text items are getting displayed to it's full length no matter how long the text is
??
Greets,
Alex
PS: I've purchased the product
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Online
|
| posted on 6/28/2006 at 02:56 PM |
|
|
please submit a support ticket, we'll make needed adjustements so parameter 'distance' also works for the horizontal scroller.
|
|
|
kyedinak
Newbie
Posts: 1
Registered: 7/6/2006
Member Is Offline
|
| posted on 7/6/2006 at 09:11 AM |
|
|
horizontal scroll text length
Has this issue been corrected? I have the same situation where the amount of horizontal text is larger than the scroll box. The text is wrapping to
the next line. I too would like to have all the text scroll horizontally across the box without wrapping to the next line. Since the text is
dynamically generated from at database, the text length will be different each time.
Please advise.
Thanks,
Kirk
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Online
|
| posted on 7/6/2006 at 09:39 AM |
|
|
just add:
white-space : nowrap;
to .TScrItem1 in scroll.css
|
|
|
|