Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: JS NewsTicker not working in IE8

  1. #1
    Join Date
    May 2010

    Unhappy JS NewsTicker not working in IE8

    Hi Guys,

    First of all, just wanted to say hi to everyone in this forum. I am here for the first time and I don't know how to write or modify javascript. I was hoping someone could help me with this small issue I encountered while designing page for a client. I tried everything, first sorting it myself, then asking friends and now I would like to post this question on the forum. I am sure there is some small mistake on my end on how I applied the code, or maybe some syntax error in the code itself that can't execute in IE8.

    Have a look at this page:


    Under "Zaufali mi" there is an embedded javascript news ticker that works in all browsers (IE7, FF, Chrome, Safari etc) but not in IE8

    Here is the link to javascript:


    Thanks all, any input is much appreciated!



  2. #2
    Join Date
    May 2010
    I cannot help you as I don't have IE8, but I believe this can help you. Especially the part where they say:
    CSS Expressions are NO LONGER allowed (deprecated)
    i love easter eggs
    (if you got any creative easter eggs, send me a PM)

  3. #3
    Join Date
    May 2010

    thx mate

    Thanks for that mate. I read through. Very complicated and heavy subject for me, not sure if I know how to fix it with their info, but your lead is much appreciated...

  4. #4
    Join Date
    May 2010
    Here's another thought. You have a TICKER_WIDTH variable in the script that is undefined. Remove the code:
    TICKER_WIDTH = document.getElementById("TICKER").style.width;
    	var img = ""+TICKER_WIDTH+"";
    And all uses of the img variables:
    (there's four occurances)
    i love easter eggs
    (if you got any creative easter eggs, send me a PM)

  5. #5
    Join Date
    May 2010

    I deleted the specified line + "+img+" with quotes (if I left the quotes the applet would stop working everywhere). But yeah, it works in IE7 ff safari etc, but still doesn't work in IE8 :{

    But thanks for our suggestion..



  6. #6
    Join Date
    May 2010
    hey, on getting the width (TICKER), the IE8 includes "px" (6 px) also. So that is undefined.

    you can use this

    var mydiv = document.getElementById("TICKER");
    var img = mydiv.style.width = 5 +"px";

    Replace 5 with any other. The script you are using in the site is not working with opera also. Check it.

  7. #7
    Join Date
    May 2010
    Hey Vignes92

    Just did what you have recommended.

    Still doesn't work in IE8.

    I have updated the files with my recent changes (script to be exact), so you can track the changes. Not sure what is causing it, as I said before - I don't know what might be causing it to ignore the script in IE8, but it looks like some security measures as suggested by a different user who wrote in this thread.


  8. #8
    Join Date
    May 2010
    ...and yes, it doesn't work in Opera either, crap :[

    Just downloaded Opera for mac and it doesn't even show up.

    Hmm.. wonder what would be the issue with those whole applet thingy :/

    Cheers dudes

  9. #9
    Join Date
    May 2010
    Check this out and tell me if it works in IE8 (since I can't check myself)
    i love easter eggs
    (if you got any creative easter eggs, send me a PM)

  10. #10
    Join Date
    May 2010
    3nex, mate you rock. Yes it works now (even in Opera!) This is awesome. Thanks for fixing this for me, much appriciated. Can I ask you what have you modified? is it just the js? or should I apply some html changes.

    Big thanks


  11. #11
    Join Date
    May 2010
    it stopped repeating now though

    update: so it works, but when the cycle is finished it doesn't cycle through again, repeat itself..
    Last edited by sgnwsk; 05-09-2010 at 06:59 AM. Reason: updated info

  12. #12
    Join Date
    May 2010
    Quote Originally Posted by sgnwsk View Post
    it stopped repeating now though
    I know that, I just meant to ask if this worked in IE8. I can get that fixed in a moment so you can just copy paste that crap.

    I did make some HTML changes too, because I've noticed that your script replaces some HTML which was redundant, so I just applied those changes right away to avoid too much javascript text replacing. And I gotta tell you your code seems kind of Dreamweavery... Am I right about that?
    i love easter eggs
    (if you got any creative easter eggs, send me a PM)

  13. #13
    Join Date
    May 2010
    yes on "repeating". That is exactly what I mean.. It was working before until you modified it (hey no offense, just saying). Sorry I don't want you to sort anything out in a seconds, all I am asking for is a bid of hand. And yes again, my code is totally "dreamweavery: as I am not getting paid for that crap and I just want to get thing out asap. But thanks for your input mate. I must have deleted some code from that html or applet at the beginning as I was trying to get this thing to work, so there must be some syntax error caused by my dev.

  14. #14
    Join Date
    May 2010
    So, now I've done the repeating too, you can check the updated version and you're all set.

    Quote Originally Posted by sgnwsk View Post
    I don't want you to sort anything out in a seconds, all I am asking for is a bid of hand
    I'm not sure what you meant by this
    i love easter eggs
    (if you got any creative easter eggs, send me a PM)

  15. #15
    Join Date
    May 2010
    Thanks a lot mate. Look, don't worry on what I have wrote. Must have been mis-communication. It looked too me like you are angry on me for what I have wrote or something doesn't matter. I appreciate your help. I have copied the html + js from your examples, so I am all set indeed. Thx again man, I will look into everything tomorrow and compare what changes you have done, so I can remember for the future but it is getting late now and I am done for today.

    Big thanks,


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.14160 seconds
  • Memory Usage 3,008KB
  • Queries Executed 15 (?)
More Information
Template Usage (37):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (15)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (15)postbit
  • (15)postbit_onlinestatus
  • (15)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (75):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates