質問編集履歴

1

追記

2015/05/18 17:58

投稿

kjjkjn
kjjkjn

スコア9

test CHANGED
File without changes
test CHANGED
@@ -10,6 +10,82 @@
10
10
 
11
11
 
12
12
 
13
+ 追記:
13
14
 
14
15
 
16
+
17
+ 下記のコードの3行目$('#js-news').ticker();にて「Uncaught TypeError: undefined is not a function」というタイプエラーが原因と出ているのですが、どのように修正すればいいかわかりません。
18
+
19
+ ---------------------------------------------------------------------------
20
+
21
+ $(function () {
22
+
23
+ // start the ticker
24
+
25
+ $('#js-news').ticker();
26
+
27
+
28
+
29
+ // hide the release history when the page loads
30
+
31
+ $('#release-wrapper').css('margin-top', '-' + ($('#release-wrapper').height() + 20) + 'px');
32
+
33
+
34
+
35
+ // show/hide the release history on click
36
+
37
+ $('a[href="#release-history"]').toggle(function () {
38
+
39
+ $('#release-wrapper').animate({
40
+
41
+ marginTop: '0px'
42
+
43
+ }, 600, 'linear');
44
+
45
+ }, function () {
46
+
47
+ $('#release-wrapper').animate({
48
+
49
+ marginTop: '-' + ($('#release-wrapper').height() + 20) + 'px'
50
+
51
+ }, 600, 'linear');
52
+
53
+ });
54
+
55
+
56
+
57
+ $('#download a').mousedown(function () {
58
+
59
+ _gaq.push(['_trackEvent', 'download-button', 'clicked'])
60
+
61
+ });
62
+
63
+ });
64
+
65
+
66
+
67
+ // google analytics code
68
+
69
+ var _gaq = _gaq || [];
70
+
71
+ _gaq.push(['_setAccount', 'UA-6132309-2']);
72
+
73
+ _gaq.push(['_setDomainName', 'www.jquerynewsticker.com']);
74
+
75
+ _gaq.push(['_trackPageview']);
76
+
77
+
78
+
79
+ (function() {
80
+
81
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
82
+
83
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
84
+
85
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
86
+
87
+ })();
88
+
89
+ ---------------------------------------------------------------------------
90
+
15
91
  ※javaは他にも使用しているものがあります。(Jqueryは別)