Jeff Fuqua
Well-known member
I've been playing around with some code in an effort to have my notifications bar pull in a Twitter feed. I somewhat have something working but it messed up the quick reply box.
Since I am a novice with such things, I thought I might post this here and see if any of you CSS gurus had any suggestions as to what I may need to do to get things working properly.
I have a file called rotation.js and twitter_feed.js. This code I place in the html part of the notification:
This actually does work but it appears some of the CSS is somehow applying to areas outside the notifications block. Quoting got wonky. Other unusual things happened.
I have it turned off for now. Thanks if anyone sees something I should adjust.
Since I am a novice with such things, I thought I might post this here and see if any of you CSS gurus had any suggestions as to what I may need to do to get things working properly.
I have a file called rotation.js and twitter_feed.js. This code I place in the html part of the notification:
HTML:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
/* TWITTER LIST */
ul#twitter_update_list
{
margin : 10px 10px 0px 10px;
list-style : none;
}
ul#twitter_update_list li
{
list-style : none;
display : none; /* Prevents the entire feed list from showing momentarily on page load */
}
.twitter-feed span
{
font-size : 14px;
color : #65a5d1;
display : block;
line-height : 1.3em;
}
/* TWITTER FEED LINKS */
.twitter-feed span a
{
color : #AAA;
text-decoration : none;
}
.twitter-feed span a:hover
{
color : #777;
text-decoration : underline;
}
/* OTHER LINKS */
.twitter-feed a
{
color : #AAA;
text-decoration : none;
}
.twitter-feed a:hover
{
color : #777;
text-decoration : none;
}
</style>
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<!-- Tweet Rotator -->
<script src="http://www.gotitans.com/TwitterFeed/scripts/rotate.js" type="text/javascript"></script>
</head>
<body>
<div class="twitter-feed">
<ul id="twitter_update_list" class="rotate"></ul>
</div>
<!-- Twitter Feed -->
<script src="http://www.gotitans.com/TwitterFeed/scripts/twitter-feed.js" type="text/javascript"></script>
<script src="http://api.twitter.com/1/statuses/user_timeline.json?screen_name=gotitanscom&include_rts=true&count=4&callback=twitterCallback2" type="text/javascript"></script>
<!-- Twitter Feed end -->
</body>
</html>
This actually does work but it appears some of the CSS is somehow applying to areas outside the notifications block. Quoting got wonky. Other unusual things happened.
I have it turned off for now. Thanks if anyone sees something I should adjust.