Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-21-2012, 08:14 AM   PM User | #1
smartwill
New to the CF scene

 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
smartwill is an unknown quantity at this point
Need a little help mergin to scripts

Hi All,

I'm a newbie to the realm of javascript and jquery and could really use some help mergin two scripts for a twitter vertical scroller. There aren't that many tutorials explaining how exactly to make a vertical scrolling twitter feed for your website especially ones with reply, favourite and tweet links.

Anyways - i'm using two scripts (vTicker & nTwitter) and can get it to work in Firefox, Safari and Chrome & IE9 however IE7 & IE8 not so much. I know what i've done is not correct so could use a little help pls.

I've put a version of this on my server for you to check:
http://www.proofmysites.com/test-tweet

Below is the code:
Code:
<html>
<head>

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="nTwitter.js"></script>
<script src="jquery.vticker.js" type="text/javascript"></script>
    
</head>

<body>

    
    
    <div id="twitter_div" style="overflow: hidden; position: relative; height: 308px;" ><ul id="twitter_update_list"></ul></div>
        
	<script type="text/javascript">
	var $ttwtsldr = jQuery.noConflict();
		$ttwtsldr(document).ready(function() {
					
					$ttwtsldr("#twitter_div").nTwitter({
						userName: "SmartdesignNews",
						tickHeight: 308,
						prefix: 'fnTweets',
						lang: {	
							reply:'/images/twitter/reply_mini.png" style="margin-bottom:-4px;" alt=""/>', 
							retweet:'/images/twitter/retweet_min.png" style="margin-bottom:-4px;" alt=""/>', 
							favorite:'/images/twitter/favorite_mini.png" style="margin-bottom:-4px;" alt=""/>', 
							noData:'This User does not have any Tweets',
							less_than_a_minute_ago:'less than a minute ago',
							a_minute_ago:'about a minute ago',
							X_minutes_ago:'%%X%% minutes ago',
							a_hour_ago:'about an hour ago',
							X_hours_ago:'%%X%% hours ago',
							a_day_ago:'yesterday',
							X_days_ago:'%%X%% days ago'
							} 
					});
					$ttwtsldr('#twitter_div').vTicker({
							speed: 500,
							pause: 3000,
							showItems: 3,
							animation: 'fade',
							mousePause: false,
							height: 308,
							direction: 'up'
							});
					 
		});	
	</script>
</body>
</html>
Any help would be greatly appreciated!

Thanks in Advance.

Cheers,
W
smartwill is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:58 PM.


Advertisement
Log in to turn off these ads.