Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Positioning Flash on web page? (want sports ticker centered)  (Read 1733 times)

0 Members and 1 Guest are viewing this topic.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:July 24, 2025, 02:05:45 pm
  • ...
Positioning Flash on web page? (want sports ticker centered)
« on: August 15, 2011, 09:53:02 pm »
After the end of college football season last year, I decided that I wanted to have a sports ticker on my jukebox screen for the next season.
Well, that's almost here, so I'm trying to get the bugs worked out.

Over on this thread posted in the everything else forum, NiN^_^NiN came up with the best solution for me using ESPN bottom line.
Code: [Select]
<body bgcolor="#000000">
<embed name="example_flashGame" src="http://static.espn.go.com/bottomline/espnewsbottomline_cust.swf" width="1800" height="120" allowScriptAccess="always" loop="false" menu="false" quality="high"  wmode="window" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
(I have no interest in getting a betabrite sign.  I want the info on the jukebox, which is visible from the bar and won't be playing music during games)

I have it installed and it works great, but I'd like it improved upon if someone has the skills and time. (I lack the skills)
I'm opening it with firefox and then pressing F11 to go fullscreen.

The ticker is displayed at the top of the screen.  Is there a way to make it centered?

It's a 4:3 screen at 800x600 resolution if it matters.
I've changed size of the ticker by changing the code, but haven't settled on a size.

To have it big enough to see from a distance, it looks like I'll only be able to have the red section showing.
I also copied and pasted the code below itself and got two tickers running at the same time.

If it's possible to position them, would it be possible to adjust the position of the second one so that it shows the black area that is cut off on first one?

Here is what it looks like:


Here is what I'm hoping to be able to do:


If the top one could overlap the orange section of the bottom one, that would be perfection, but I'd be happy with any amount of help.



BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:July 24, 2025, 02:05:45 pm
  • ...
Re: Positioning Flash on web page? (want sports ticker centered)
« Reply #1 on: August 16, 2011, 11:47:30 am »
Managed to get it centered by setting the height to my screen height (600).

The height of the ticker isn't affected because the aspect ratio is locked.
To make it taller, you have to make it longer.

I'm on my work computer, so it still might need some adjusting, but here is what I have now:

Code: [Select]
<body bgcolor="#000000">
<embed name="example_flashGame" src="http://static.espn.go.com/bottomline/espnewsbottomline_cust.swf" width="1600" height="600" allowScriptAccess="always" loop="false"

menu="false" quality="high"  wmode="window" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>

It displays the ticker in accross the center of the screen, but is halfway off the screen so that only the red part shows.
Still have the scroll bar at the bottom, but it's a minor inconvenience.

It would still be awesome if someone could put a second ticker there with the black part showing.
« Last Edit: August 16, 2011, 12:29:05 pm by BadMouth »

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:July 24, 2025, 02:05:45 pm
  • ...
Re: Positioning Flash on web page? (want sports ticker centered)
« Reply #2 on: August 16, 2011, 01:36:53 pm »
Made it a little farther.  I now have two sports tickers on screen with the red part showing on one and the black part showing on the other.
It's either make the height small and have them close together (the way I want), but at the top of the screen, or make them both taller and they're spaced out, but not scrunched at the top.  I may try to make some kind of autohotkey script with a splash screen mask with transparent parts where the main ticker parts are.  Not sure if it will work or not, but won't be much trouble to try.

Here is what I have now.  The width will have to be adjusted for my jukebox.

Code: [Select]
<body bgcolor="#000000">
<embed name="example_flashGame" src="http://static.espn.go.com/bottomline/espnewsbottomline_cust.swf" width="2800" height="180" align="left" allowScriptAccess="always"

loop="false" menu="false" quality="high"  wmode="window" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>

<embed name="example_flashGame" src="http://static.espn.go.com/bottomline/espnewsbottomline_cust.swf" width="2800" height="180" align="right"

allowScriptAccess="always" loop="false" menu="false" quality="high"  wmode="window" type="application/x-shockwave-flash"

pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:July 24, 2025, 02:05:45 pm
  • ...
Re: Positioning Flash on web page? (want sports ticker centered)
« Reply #3 on: August 16, 2011, 02:10:04 pm »
Got this far....
It's against the top of the page, but if I run it windowed, I could just move the firefox window to the middle of the screen manually.
If I can apply some type of black mask over the thing that will allow only the headlines to show, it would be exactly what I want.
I don't need the tabs showing.  I plan to lock it to only college football.


BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:July 24, 2025, 02:05:45 pm
  • ...
Re: Positioning Flash on web page? (want sports ticker centered)
« Reply #4 on: August 16, 2011, 06:38:44 pm »
Bah! got home and installed it on the jukebox and the tickers become out of synch.  :(

Guess I'll have to be happy just having the red part.