EUR/JPY Classical Technical Report 02.22 | DailyFX
| DailyFX
$(document).ready(function(){
$(".MegaMenuLink").megamenu(".MegaMenuContent");
$(".MegaMenuLinkR").megamenuR(".MegaMenuContentR", {
justify: "right"
});
});
//configuration
OAS_url = 'http://oasc17.247realmedia.com/RealMedia/ads/';
OAS_sitepage = 'DailyFX.com/forex/technical/home/analysis/eur-jpy/2012/02/22/Daily_Classical_EURJPY.html';
OAS_listpos = 'x37,x38,x52,x53,x05,x30,x31,x32,x33,x34';
OAS_query = '';
OAS_target = '_top';
//end of configuration
OAS_version = 10;
OAS_rn = '001234567890'; OAS_rns = '1234567890';
OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11);
function OAS_NORMAL(pos) {
document.write('');
document.write('
');
}
OAS_version = 11;
if ((navigator.userAgent.indexOf('Mozilla/3') != -1) || (navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1))
OAS_version = 10;
if (OAS_version >= 11)
document.write('<\/SCRIPT>');
document.write('');
function OAS_AD(pos) {
//alert( pos );
if (OAS_version >= 11)
OAS_RICH(pos);
else
OAS_NORMAL(pos);
}
$(document).ready(function(){
// Table Alternate Rows
$("table.striped tbody tr:nth-child(odd)").addClass("odd");
$("table.striped tbody tr:nth-child(even)").addClass("even");
// Tabs
//When page loads...
$(".tab_content").hide(); //Hide all content
$("ul.tabs li:first").addClass("active").show(); //Activate first tab
$(".tab_content:first").show(); //Show first tab content
//On Click Event
$("ul.tabs li").click(function() {
$("ul.tabs li").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(".tab_content").hide(); //Hide all tab content
var activeTab = $(this).find("a").attr("id"); //Find the href attribute value to identify the active tab + content
if ($.browser.msie)
{$(activeTab).show();}
else
{$(activeTab).fadeIn();}
return false;
});
// Forex Stream
$.fn.extend({
linkUrl: function() {
var returning = [];
var regexp = /((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi;
this.each(function() {
returning.push(this.replace(regexp,'$1'));
});
return $(returning);
},
linkUser: function() {
var returning = [];
var regexp = /^[\@]+([A-Za-z0-9-_]+)/gi;
this.each(function() {
returning.push(this.replace(regexp,'@$1'));
});
return $(returning);
}
});
var url = 'http://realtimenews.dailyfx.com/news.json';
var count = 6;
//var author = 'DailyFXTeam';
var options2 = {
newsList: "ul#news",
tickerRate: 20,
startDelay: 10,
loopDelay: 4999,
controls: false,
ownControls: false,
stopOnHover: true
}
$.getJSON(url+'?count='+count+'&callback=?', function(data) {
var newslist = '';
$.each(data, function(i,item) {
if(item.show == true && (item.user.screen_name == "DailyFXTeam" || item.user.screen_name == "DailyFXTeamRT"))
{
var text = $([item.text]).linkUrl().linkUser()[0];
//var = $([item.text]).linkUrl().linkUser()[0];
$(''+text+' ').prependTo('ul#news');
}
});
$('#news').list_ticker({
speed:5000,
effect:'slide'
});
});
});
function doClear(theText) {
if (theText.value == theText.defaultValue) {
theText.value = ""
}
}
/*
