-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathindex.html
190 lines (177 loc) · 4.01 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>inewsticker</title>
</head>
<style>
body {
background: #348FDC;
margin: 0;
padding: 0;
}
pre {
background: none repeat scroll 0 0 #3B8ED3;
color: #FFFFFF;
line-height: 20px;
padding: 7px;
}
.clear {
clear: both;
}
.wrapper {
width: 980px;
margin: 15px auto 0;
}
.content {
color: #fff;
line-height: 30px;
}
.doc, .demo {
background: #2D81C8;
padding: 10px;
min-height: 500px;
}
.doc {
width: 520px;
float: left;
}
.demo {
width: 400px;
float: right;
}
.doc h1, .demo h1 {
background: none repeat scroll 0 0 #2874B3;
color: #1E5989;
margin-top: 0;
padding: 15px;
text-align: center;
text-shadow: 1px 1px #3B8ED3;
}
.demo > h3 {
color:#fff;
}
.fade,.slide {
background: none repeat scroll 0 0 #3B8ED3;
color: #FFFFFF;
font-size: 13px;
padding: 10px;
}
.typing{
padding-left:18px;
}
.fade > li,.slide > li,.typing > li {
list-style: none inside none;
}
.demo > h3 {
color: #23669E;
font-size: 15px;
padding-left:1px;
}
.copyright {
color: #fff;
font-size: 12px;
width: 418px;
float: right;
margin-top: 20px;
}
.copyright a {
color: #fff;
font-weight: bold;
}
</style>
<body>
<section class="wrapper">
<aside class="doc">
<h1>Documention</h1>
<div class="content">
<div> <strong>Step 1 : add <strong>jquery.js</strong> and <strong>inewsticker.js</strong> before closed body tag </div>
<div><strong>Step 2 : </strong>add inewsticker function</div>
<pre>
$(document).ready(function() {
$('#name').inewsticker({
speed : 1500,
effect : 'fade',
dir : 'ltr',
font_size : 13,
color : '#fff',
font_family : 'arial',
delay_after : 1000
});
});
</pre>
<div><strong>Step 3 : </strong> change #name to your selector </div>
<strong>Options </strong>
<ul>
<li><strong>speed</strong> : text change speed</li>
<li><strong>effect</strong> : text effect</li>
<li><strong>dir </strong> : text direction (ltr or rtl)</li>
<li><strong>font_size</strong> : text font size </li>
<li><strong>color</strong> : text color </li>
<li><strong>font_family</strong> : text font family</li>
<li><strong>delay_after</strong> : text speed delay after </li>
</ul>
</div>
</aside>
<aside class="demo">
<h1>Demo</h1>
<h3>Fade effect</h3>
<ul class="fade">
<li>Hello</li>
<li>I am mahdi khaksar from iran</li>
<li>I am designer and programmer at progpars.com </li>
<li>www.ijquery.ir</li>
</ul>
<h3>Slide effect</h3>
<ul class="slide">
<li>Hello</li>
<li>I am mahdi khaksar from iran</li>
<li>I am designer and programmer at progpars.com </li>
<li>www.ijquery.ir</li>
</ul>
<h3>Typing effect</h3>
<ul class="typing">
<li>Hello</li>
<li>I am mahdi khaksar from iran</li>
<li>I am designer and programmer at progpars.com </li>
<li>www.ijquery.ir</li>
</ul>
</aside>
<aside class="copyright"> © plugin by <a href="mailto:[email protected]">mahdi khaksar</a> | progpars.com / ijquery.ir </aside>
<div class="clear"></div>
</section>
<script src="jquery.js"></script>
<script src="inewsticker.js"></script>
<script>
$(document).ready(function() {
$('.fade').inewsticker({
speed : 3000,
effect : 'fade',
dir : 'ltr',
font_size : 13,
color : '#fff',
font_family : 'arial',
delay_after : 1000
});
$('.slide').inewsticker({
speed : 2500,
effect : 'slide',
dir : 'ltr',
font_size : 13,
color : '#fff',
font_family : 'arial',
delay_after : 1000
});
$('.typing').inewsticker({
speed : 100,
effect : 'typing',
dir : 'ltr',
font_size : 13,
color : '#fff',
font_family : 'arial',
delay_after : 1000,
});
});
</script>
</body>
</html>