Archive for myfreeforum.org Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
 


       myfreeforum.org Forum Index -> Portal components
Nick(NR)

NEW :: news ticker

http://portalogy.myfastforum.org/index.php

Nice and new, still has the new car smell, it's the second news ticker, that needs to be looked at, it scrolls and pauses on mouse over, code is in the test section, registering will be required to view that section.

hopefully the guide is understandable, if there are parts that don't make sense, shout on portalogy in the news ticker thread and I'll try to clear things up.

*please note this is still in a test phase, should be portalogy approved soon*
Danny M

Working on mine now, thanks

But im trying to get the borders to work, which they arent showing for some reason

Also whats this bit do:
Code:

var pausecontent2=new Array()
pausecontent2[0]='<a href="http://www.news.com">News.com: Technology and business reports</a>'
pausecontent2[1]='<a href="http://www.cnn.com">CNN: Headline and breaking news 24/7</a>'
pausecontent2[2]='<a href="http://news.bbc.co.uk">BBC News: UK and international news</a>'
Nick(NR)

Danny M wrote:
Working on mine now, thanks

But im trying to get the borders to work, which they arent showing for some reason

Also whats this bit do:
Code:

var pausecontent2=new Array()
pausecontent2[0]='<a href="http://www.news.com">News.com: Technology and business reports</a>'
pausecontent2[1]='<a href="http://www.cnn.com">CNN: Headline and breaking news 24/7</a>'
pausecontent2[2]='<a href="http://news.bbc.co.uk">BBC News: UK and international news</a>'


I did mention it's coded to work on subSilver, your portals design is custom and will need separate tweaking and the snippet you posted does nothing, it's for a different scroller that uses the same java and no it's not better, just about 20 high.
Danny M

Oh ok, just wondering what it was really

Also im using this code in the cms_newsticker.tpl:

Code:
<table width="100%" cellpadding="4" cellspacing="0" border="0" align="center">
   <tr>
    <th class="tableleft" align="left"><div class="left-image"></div></td>
    <th class="tablemiddle" align="center"><font color="FFFFFF">News</font></td>
    <th class="tableright" align="right"><div class="right-image"></div></td>
     </tr>
</table>
<table width="85%" cellpadding="3" cellspacing="1" border="0" align="center">
  <tr>

<script type="text/javascript">

//new pausescroller(name_of_message_array, CSS_ID, CSS_classname, pause_in_miliseconds)

new pausescroller(pausecontent, "pscroller1", "someclass", 3000)

</script>

</td>
  </tr>
</table>


I changed it from yours as i wanted them images to show up again on the cattitle, anyway its still working and stuff, except from the borders. I wanted them to do the same like on the others really, like go inside a little

Anyway will this not work then Nick on the Ticker

Thanks
Nick(NR)

Put the class back on the lower table like on the others you have.

Then via the .pscroller1 css, edit the width on trial and error, until it fits and you see the border on the table.
Danny M

I changed the width:

Code:
#pscroller1{
width: 90px;
height: 100px;
padding-left: 5px;
padding-right: 5px;
padding-top: 4px;
padding-bottom: 4px;
background-color: #000000;
font-size:10px;
font-weight:normal;
color: #ffffff;
}


from 190 to 90 and nothing seems to have changed there
Danny M

I also changed the alignment of the text to center
Nick(NR)

your tickers portal code from the cms file and the currenttime cms code please.
Danny M

Current Time:

Spoiler:

Code:
<table width="100%" cellpadding="4" cellspacing="0" border="0" class="forumline" align="center">
   <tr>
    <th class="tableleft" align="left"><div class="left-image"></div></td>
    <th class="tablemiddle" align="center"><font color="FFFFFF">CurrentTime</font></td>
    <th class="tableright" align="right"><div class="right-image"></div></td>
     </tr>
</table>
<table width="85%" cellpadding="4" cellspacing="0" border="0" align="center" class="tablebottom">
  <tr>
   <td>

<center>
<span class="forumlink">
<script type="text/javascript" src="/portal_clock.js"></script>
<script language="JavaScript" type="text/javascript">show_clock()</script>
</span>
</center>

</td>
  </tr>
</table>




Newsticker:

Spoiler:

[code[

<th class="tableleft" align="left">

<th class="tablemiddle" align="center">News
<th class="tableright" align="right">






<script type="text/javascript">

//new pausescroller(name_of_message_array, CSS_ID, CSS_classname, pause_in_miliseconds)

new pausescroller(pausecontent, "pscroller1", "someclass", 3000)

</script>



[/code]

Nick(NR)

Code:
<table width="100%" cellpadding="4" cellspacing="0" border="0" class="forumline" align="center">
   <tr>
    <th class="tableleft" align="left"><div class="left-image"></div></td>
    <th class="tablemiddle" align="center"><font color="FFFFFF">Current News</font></td>
    <th class="tableright" align="right"><div class="right-image"></div></td>
     </tr>
</table>
<table width="85%" cellpadding="4" cellspacing="0" border="0" align="center" class="tablebottom">
  <tr>
   <td>

<script type="text/javascript">

//new pausescroller(name_of_message_array, CSS_ID, CSS_classname, pause_in_miliseconds)

new pausescroller(pausecontent, "pscroller1", "someclass", 3000)

</script>

</td>
  </tr>
</table>


See if that does anything?
Danny M

you are one GENIUS
Nick(NR)

now just set width and height to:

Change, don't copy and paste.
Code:
width: 90%;
height: 100px;
padding-left: 5%;
padding-right: 5%;


That should widen the ticker, to just inside the cells edges.
Nick(NR)

also, you might want to save the arrow image and upload it to your template Wink
Symon

Danny M wrote:
you are one GENIUS


Indeed and also a man with a lot of patience.
Danny M

Not like you then Symon, and Nick, i wont copy your logo's, i was trying them, i will change them

Thanks once again Nick
Nick(NR)

Symon wrote:
Danny M wrote:
you are one GENIUS


Indeed and also a man with a lot of patience.


Tbh, I was expecting it, as he checked in twice, asking about it, so I already knew I'd have to tweak the table for the portal design he's got.

I'd also like to think more genius, than patience, hence why I'm no doctor

Sorry, doctor, no patience, CLASSIC!

       myfreeforum.org Forum Index -> Portal components
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum