WordPress,非插件實現博客Highslide圖片特效的分享

公元2011年10月24日沒人鳥我喲打醬油看熱鬧的有:3,240 views

WordPress,非插件實現博客Highslide圖片特效的分享

這個相信大家都不陌生,下面我放了一張示例圖片大家可以點擊看下,相信大家應該都見過,最近不是忙著折騰主題的功能集成嘛,所以順便把這個也給集成了,還挺好的說,有點,支持外鏈,點擊放大可隨意拖動,如下:

WordPress,非插件實現博客Highslide圖片特效的分享.沫

上面就是代碼所實現的效果,下面把代碼放出來,希望能夠幫到有用的哥們,其實用的頻率還是挺高的,至於是不是要用,大家自己斟酌考慮吧!下面說下實現的方法:

第一種方法:(個人推薦)

超級簡單,直接下載Highslide插件,直接上傳開啟,不需要設置,不需要調試即可使用,簡單到不能再簡單了,並且如果你是經常換主題的話,這個絕對是首選!

第二種方法:(折騰控專用)

直接上代碼,如下:

添加以下代碼到functions.php,常說,位置自己決定,如果不知道就度娘下吧!

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
//highslide
$options['highslide'] = true;
if($options['highslide']) :
add_filter('the_content', 'hlHighSlide_replace', '99');
add_action('wp_head', 'highslide_head');
 
    function highslide_head()
    {
    $hlHighslide_wp_url=get_bloginfo('template_url').'/';
    $defaults_javascript =  
"\n\t<link href='{$hlHighslide_wp_url}highslide.css' rel='stylesheet' type='text/css' />
<!--[if IE 6]>
<link href='{$hlHighslide_wp_url}highslide-ie6.css' rel='stylesheet' type='text/css' />
<![endif]-->
        <script type='text/javascript' src='{$hlHighslide_wp_url}highslide.js'></script>
    <script type='text/javascript'>
	hs.showCredits = false;  
    hs.graphicsDir = '{$hlHighslide_wp_url}graphics/';
	hs.wrapperClassName = 'wide-border';
    hs.align = 'center';
        hs.transitions = ['expand', 'crossfade'];
        hs.fadeInOut = true;
        hs.dimmingOpacity = 0.3;
		//hs.padToMinWidth = true;
        if (hs.addSlideshow) hs.addSlideshow({
            interval: 5000,
            repeat: false,
            useControls: true,
            fixedControls: 'fit',
            overlayOptions: {
                opacity: .6,
                position: 'bottom center',
                hideOnMouseOut: true
            }
        });
        hs.lang={
    loadingText :     '圖片加載中...',
    loadingTitle :    '正在加載圖片',
        closeText :       '關閉',
    closeTitle :      '關閉 (Esc)',
        moveTitle :       '移動圖片',
        moveText :        '移動',
        restoreTitle :    '點擊可關閉或拖動',
        fullExpandTitle : '點擊查看原圖',
        fullExpandText :  '查看原圖'
        };
        hs.registerOverlay({
html: '<div class=\"closebutton\" onclick=\"return hs.close(this)\" title=\"Close\"></div>',
    position: 'top right',
    fade: 2 // fading the semi-transparent overlay looks bad in IE
        });
        hs.Expander.prototype.onMouseOut = function (sender) {
        sender.close();
        };
        hs.Expander.prototype.onAfterExpand = function (sender) {
        if (!sender.mouseIsOver) sender.close();
         }
         </script>";
 echo $defaults_javascript;
 }
//add onclick event 
function add_onclick_replace ($content)
{ 
$pattern = "/<a(.*?)href=('|\")([^>]*).(bmp|gif|jpeg|jpg|png)('|\")(.*?)>(.*?)<\/a>/i";
$replacement = '<a$1href=$2$3.$4$5 class="highslide"  
onclick="return hs.expand(this)" $6>$7 </a>';
$content = preg_replace($pattern, $replacement, $content);
return $content;
}
function hlHighSlide_replace($content)
{
 global $post;
 $defaults = array();
 $defaults['quicktags'] = 'y';
 $defaults['alt'] = 'Enter ALT Tag Description';
 $defaults['title'] = 'Enter Caption Text';
 $defaults['thumbid'] = 'thumb1';
$defaults['show_caption'] = 'y';
$defaults['show_close'] = 'y';
$content=add_onclick_replace($content);
$HSVars = array("SRC", "ALT", "TITLE", "WIDTH", "HEIGHT","THUMBID");
$HSVals = array($defaults['href'], $defaults['src'], $defaults['alt'], 
$defaults['title'], $defaults['thumbid']);
preg_match_all ('!<img([^>]*)[ ]*[/]{1}>!i', $content, $matches);
$HSStrings = $matches[0];
$HSAttributes = $matches[1];
for ($i = 0; $i < count($HSAttributes); $i++)
{ preg_match_all('!(src|alt|title|width|height|class)="([^"]*)"!i'
,$HSAttributes[$i],$matches);
$HSSetVars = $HSSetVals = array();
for ($j = 0; $j < count($matches[1]); $j++)
{ $HSSetVars[$j] = strtoupper($matches[1][$j]);
$HSSetVals[$j] = $matches[2][$j];}
}
$HSClose = <<<EOT
<a href="#" onclick="hs.close(this);return false;" 
class="highslide-close"  title="關閉">Close</a>  
EOT;
                $HSCaption = <<<EOT
                <div class='highslide-caption' id='caption-for-%THUMBID%'>
                {$HSPrvNextLinks}           
                {$HSClose}  
                <div style="clear:both">%TITLE%</div>
                </div>
EOT;
            $HSCode = <<<EOT
<img id="%THUMBID%" src="%SRC%" alt="%ALT%" 
title="%TITLE%" width="%WIDTH%"  height="%HEIGHT%" />
{$HSCaption}
EOT;
          $content = str_replace($HSStrings[$i], $HSCode, $content);
        return $content;
    }
	endif;

以上代碼第三第四行記得對應著主題修改,比如我的是get_header也許你的是the_header,上面是我直接調用的,大家可以參考下!

下面是JS代碼,大家可以新建個JS文件,然後直接調用就好了!代碼如下:

最後就是CSS了,直接寫入styleOK或者專門寫個CSS文件調用也行,這個根據個人喜好折騰吧,代碼如下:

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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
/*file:highslide*/
 
.highslide-container div {
	font-family:Verdana,Helvetica;
	font-size:10pt;
}
.highslide-container table {
	background:none;
}
.highslide {
	outline:none;
	text-decoration:none;
}
.highslide img {
	background:#fff;
	border:solid 1px #bbb;
	border-radius:5px;
	-webkit-border-radius:5px;
	-moz-border-radius:5px;
	-khtml-border-radius:5px;
	padding:3px;
	-moz-box-shadow:1px 3px 16px #ccc;
	-webkit-box-shadow:1px 3px 16px #ccc;
	box-shadow:1px 3px 16px #ccc;
}
.highslide:hover img {
	border-color:gray;
}
.highslide-active-anchor img {
	visibility:hidden;
}
.highslide-gallery .highslide-active-anchor img {
	border-color:black;
	visibility:visible;
	cursor:default;
}
.highslide-image {
	border-width:2px;
	border-style:solid;
	border-color:white;
}
.highslide-wrapper,.highslide-outline {
	background:white;
}
.glossy-dark {
	background:#111;
}
.highslide-image-blur {
	}.highslide-number {
	font-weight:bold;
	color:gray;
	font-size:.9em;
}
.highslide-caption {
	display:none;
	font-size:1em;
	padding:5px;
}
.highslide-heading {
	display:none;
	font-weight:bold;
	margin:0.4em;
}
.highslide-dimming {
	background:black;
}
a.highslide-full-expand {
	background:url(graphics/fullexpand.gif) no-repeat;
	display:block;
	margin:0 10px 10px 0;
	width:34px;
	height:34px;
}
.highslide-loading {
	display:block;
	color:black;
	font-size:9px;
	font-weight:bold;
	text-transform:uppercase;
	text-decoration:none;
	padding:3px;
	border:1px solid white;
	background-color:white;
	padding-left:22px;
	background-image:url(graphics/loader.white.gif);
	background-repeat:no-repeat;
	background-position:3px 1px;
}
a.highslide-credits,a.highslide-credits i {
	padding:2px;
	color:silver;
	text-decoration:none;
	font-size:10px;
}
a.highslide-credits:hover,a.highslide-credits:hover i {
	color:white;
	background-color:gray;
}
.highslide-move,.highslide-move * {
	cursor:move;
}
.highslide-viewport {
	display:none;
	position:fixed;
	width:100%;
	height:100%;
	z-index:1;
	background:none;
	left:0;
	top:0;
}
.highslide-overlay {
	display:none;
}
.hidden-container {
	display:none;
}
.closebutton {
	position:relative;
	top:-22px;
	left:22px;
	width:30px;
	height:30px;
	cursor:pointer;
	background:url(graphics/close.png);
}
.highslide-gallery ul {
	list-style-type:none;
	margin:0;
	padding:0;
}
.highslide-gallery ul li {
	display:block;
	position:relative;
	float:left;
	width:106px;
	height:106px;
	border:1px solid silver;
	background:#ededed;
	margin:2px;
	line-height:0;
	overflow:hidden;
}
.highslide-gallery ul a {
	position:absolute;
	top:50%;
	left:50%;
}
.highslide-gallery ul img {
	position:relative;
	top:-50%;
	left:-50%;
}
html>body .highslide-gallery ul li {
	display:table;
	text-align:center;
}
html>body .highslide-gallery ul li {
	text-align:center;
}
html>body .highslide-gallery ul a {
	position:static;
	display:table-cell;
	vertical-align:middle;
}
html>body .highslide-gallery ul img {
	position:static;
}
.highslide-controls {
	width:195px;
	height:40px;
	background:url(graphics/controlbar-white.gif) 0 -90px no-repeat;
	margin:20px 15px 10px 0;
}
.highslide-controls ul {
	position:relative;
	left:15px;
	height:40px;
	list-style:none;
	margin:0;
	padding:0;
	background:url(graphics/controlbar-white.gif) right -90px no-repeat;
}
.highslide-controls li {
	float:left;
	padding:5px 0;
	margin:0;
	list-style:none;
}
.highslide-controls a {
	background-image:url(graphics/controlbar-white.gif);
	display:block;
	float:left;
	height:30px;
	width:30px;
	outline:none;
}
.highslide-controls a.disabled {
	cursor:default;
}
.highslide-controls a.disabled span {
	cursor:default;
}
.highslide-controls a span {
	display:none;
	cursor:pointer;
}
.highslide-controls .highslide-previous a {
	background-position:0 0;
}
.highslide-controls .highslide-previous a:hover {
	background-position:0 -30px;
}
.highslide-controls .highslide-previous a.disabled {
	background-position:0 -60px !important;
}
.highslide-controls .highslide-play a {
	background-position:-30px 0;
}
.highslide-controls .highslide-play a:hover {
	background-position:-30px -30px;
}
.highslide-controls .highslide-play a.disabled {
	background-position:-30px -60px !important;
}
.highslide-controls .highslide-pause a {
	background-position:-60px 0;
}
.highslide-controls .highslide-pause a:hover {
	background-position:-60px -30px;
}
.highslide-controls .highslide-next a {
	background-position:-90px 0;
}
.highslide-controls .highslide-next a:hover {
	background-position:-90px -30px;
}
.highslide-controls .highslide-next a.disabled {
	background-position:-90px -60px !important;
}
.highslide-controls .highslide-move a {
	background-position:-120px 0;
}
.highslide-controls .highslide-move a:hover {
	background-position:-120px -30px;
}
.highslide-controls .highslide-full-expand a {
	background-position:-150px 0;
}
.highslide-controls .highslide-full-expand a:hover {
	background-position:-150px -30px;
}
.highslide-controls .highslide-full-expand a.disabled {
	background-position:-150px -60px !important;
}
.highslide-controls .highslide-close a {
	background-position:-180px 0;
}
.highslide-controls .highslide-close a:hover {
	background-position:-180px -30px;
}
.highslide-maincontent {
	display:none;
}
.highslide-html {
	background-color:white;
}
.highslide-html-content {
	display:none;
	width:400px;
	padding:0 5px 5px 5px;
}
.highslide-header {
	padding-bottom:5px;
}
.highslide-header ul {
	margin:0;
	padding:0;
	text-align:right;
}
.highslide-header ul li {
	display:inline;
	padding-left:1em;
}
.highslide-header ul li.highslide-previous,.highslide-header ul li.highslide-next {
	display:none;
}
.highslide-header a {
	font-weight:bold;
	color:gray;
	text-transform:uppercase;
	text-decoration:none;
}
.highslide-header a:hover {
	color:black;
}
.highslide-header .highslide-move a {
	cursor:move;
}
.highslide-footer {
	height:16px;
}
.highslide-footer .highslide-resize {
	display:block;
	float:right;
	margin-top:5px;
	height:11px;
	width:11px;
	background:url(graphics/resize.gif) no-repeat;
}
.highslide-footer .highslide-resize span {
	display:none;
}
.highslide-body {
	}.highslide-resize {
	cursor:nw-resize;
}
.draggable-header .highslide-header {
	height:18px;
	border-bottom:1px solid #dddddd;
}
.draggable-header .highslide-heading {
	position:absolute;
	margin:2px 0.4em;
}
.draggable-header .highslide-header .highslide-move {
	cursor:move;
	display:block;
	height:16px;
	position:absolute;
	right:24px;
	top:0;
	width:100%;
	z-index:1;
}
.draggable-header .highslide-header .highslide-move * {
	display:none;
}
.draggable-header .highslide-header .highslide-close {
	position:absolute;
	right:2px;
	top:2px;
	z-index:5;
	padding:0;
}
.draggable-header .highslide-header .highslide-close a {
	display:block;
	height:16px;
	width:16px;
	background-image:url(graphics/closeX.png);
}
.draggable-header .highslide-header .highslide-close a:hover {
	background-position:0 16px;
}
.draggable-header .highslide-header .highslide-close span {
	display:none;
}
.draggable-header .highslide-maincontent {
	padding-top:1em;
}
.titlebar .highslide-header {
	height:18px;
	border-bottom:1px solid #dddddd;
}
.titlebar .highslide-heading {
	position:absolute;
	width:90%;
	margin:1px 0 1px 5px;
	color:#666666;
}
.titlebar .highslide-header .highslide-move {
	cursor:move;
	display:block;
	height:16px;
	position:absolute;
	right:24px;
	top:0;
	width:100%;
	z-index:1;
}
.titlebar .highslide-header .highslide-move * {
	display:none;
}
.titlebar .highslide-header li {
	position:relative;
	top:3px;
	z-index:2;
	padding:0 0 0 1em;
}
.titlebar .highslide-maincontent {
	padding-top:1em;
}
.no-footer .highslide-footer {
	display:none;
}
.wide-border {
	background:white;
}
.wide-border .highslide-image {
	border-width:10px;
}
.wide-border .highslide-caption {
	padding:0 10px 10px 10px;
}
.borderless .highslide-image {
	border:none;
}
.borderless .highslide-caption {
	border-bottom:1px solid white;
	border-top:1px solid white;
	background:silver;
}
.outer-glow {
	background:#444;
}
.outer-glow .highslide-image {
	border:5px solid #444444;
}
.outer-glow .highslide-caption {
	border:5px solid #444444;
	border-top:none;
	padding:5px;
	background-color:gray;
}
.colored-border {
	background:white;
}
.colored-border .highslide-image {
	border:2px solid green;
}
.colored-border .highslide-caption {
	border:2px solid green;
	border-top:none;
}
.dark {
	background:#111;
}
.dark .highslide-image {
	border-color:black black #202020 black;
	background:gray;
}
.dark .highslide-caption {
	color:white;
	background:#111;
}
.dark .highslide-controls,.dark .highslide-controls ul,.dark .highslide-controls a {
	background-image:url(graphics/controlbar-black-border.gif);
}
.floating-caption .highslide-caption {
	position:absolute;
	padding:1em 0 0 0;
	background:none;
	color:white;
	border:none;
	font-weight:bold;
}
.controls-in-heading .highslide-heading {
	color:gray;
	font-weight:bold;
	height:20px;
	overflow:hidden;
	cursor:default;
	padding:0 0 0 22px;
	margin:0;
	background:url(graphics/icon.gif) no-repeat 0 1px;
}
.controls-in-heading .highslide-controls {
	width:105px;
	height:20px;
	position:relative;
	margin:0;
	top:-23px;
	left:7px;
	background:none;
}
.controls-in-heading .highslide-controls ul {
	position:static;
	height:20px;
	background:none;
}
.controls-in-heading .highslide-controls li {
	padding:0;
}
.controls-in-heading .highslide-controls a {
	background-image:url(graphics/controlbar-white-small.gif);
	height:20px;
	width:20px;
}
.controls-in-heading .highslide-controls .highslide-move {
	display:none;
}
.controls-in-heading .highslide-controls .highslide-previous a {
	background-position:0 0;
}
.controls-in-heading .highslide-controls .highslide-previous a:hover {
	background-position:0 -20px;
}
.controls-in-heading .highslide-controls .highslide-previous a.disabled {
	background-position:0 -40px !important;
}
.controls-in-heading .highslide-controls .highslide-play a {
	background-position:-20px 0;
}
.controls-in-heading .highslide-controls .highslide-play a:hover {
	background-position:-20px -20px;
}
.controls-in-heading .highslide-controls .highslide-play a.disabled {
	background-position:-20px -40px !important;
}
.controls-in-heading .highslide-controls .highslide-pause a {
	background-position:-40px 0;
}
.controls-in-heading .highslide-controls .highslide-pause a:hover {
	background-position:-40px -20px;
}
.controls-in-heading .highslide-controls .highslide-next a {
	background-position:-60px 0;
}
.controls-in-heading .highslide-controls .highslide-next a:hover {
	background-position:-60px -20px;
}
.controls-in-heading .highslide-controls .highslide-next a.disabled {
	background-position:-60px -40px !important;
}
.controls-in-heading .highslide-controls .highslide-full-expand a {
	background-position:-100px 0;
}
.controls-in-heading .highslide-controls .highslide-full-expand a:hover {
	background-position:-100px -20px;
}
.controls-in-heading .highslide-controls .highslide-full-expand a.disabled {
	background-position:-100px -40px !important;
}
.controls-in-heading .highslide-controls .highslide-close a {
	background-position:-120px 0;
}
.controls-in-heading .highslide-controls .highslide-close a:hover {
	background-position:-120px -20px;
}
.text-controls .highslide-controls {
	width:auto;
	height:auto;
	margin:0;
	text-align:center;
	background:none;
}
.text-controls ul {
	position:static;
	background:none;
	height:auto;
	left:0;
}
.text-controls .highslide-move {
	display:none;
}
.text-controls li {
	background-image:url(graphics/controlbar-text-buttons.png);
	background-position:right top !important;
	padding:0;
	margin-left:15px;
	display:block;
	width:auto;
}
.text-controls a {
	background:url(graphics/controlbar-text-buttons.png) no-repeat;
	background-position:left top !important;
	position:relative;
	left:-10px;
	display:block;
	width:auto;
	height:auto;
	text-decoration:none !important;
}
.text-controls a span {
	background:url(graphics/controlbar-text-buttons.png) no-repeat;
	margin:1px 2px 1px 10px;
	display:block;
	min-width:4em;
	height:18px;
	line-height:18px;
	padding:1px 0 1px 18px;
	color:#333;
	font-family:"Trebuchet MS",Arial,sans-serif;
	font-size:12px;
	font-weight:bold;
	white-space:nowrap;
}
.text-controls .highslide-next {
	margin-right:1em;
}
.text-controls .highslide-full-expand a span {
	min-width:0;
	margin:1px 0;
	padding:1px 0 1px 10px;
}
.text-controls .highslide-close a span {
	min-width:0;
}
.text-controls a:hover span {
	color:black;
}
.text-controls a.disabled span {
	color:#999;
}
.text-controls .highslide-previous span {
	background-position:0 -40px;
}
.text-controls .highslide-previous a.disabled {
	background-position:left top !important;
}
.text-controls .highslide-previous a.disabled span {
	background-position:0 -140px;
}
.text-controls .highslide-play span {
	background-position:0 -60px;
}
.text-controls .highslide-play a.disabled {
	background-position:left top !important;
}
.text-controls .highslide-play a.disabled span {
	background-position:0 -160px;
}
.text-controls .highslide-pause span {
	background-position:0 -80px;
}
.text-controls .highslide-next span {
	background-position:0 -100px;
}
.text-controls .highslide-next a.disabled {
	background-position:left top !important;
}
.text-controls .highslide-next a.disabled span {
	background-position:0 -200px;
}
.text-controls .highslide-full-expand span {
	background:none;
}
.text-controls .highslide-full-expand a.disabled {
	background-position:left top !important;
}
.text-controls .highslide-close span {
	background-position:0 -120px;
}
.highslide-thumbstrip {
	height:100%;
	direction:ltr;
}
.highslide-thumbstrip div {
	overflow:hidden;
}
.highslide-thumbstrip table {
	position:relative;
	padding:0;
	border-collapse:collapse;
}
.highslide-thumbstrip td {
	padding:1px;
}
.highslide-thumbstrip a {
	outline:none;
}
.highslide-thumbstrip img {
	display:block;
	border:1px solid gray;
	margin:0 auto;
}
.highslide-thumbstrip .highslide-active-anchor img {
	visibility:visible;
}
.highslide-thumbstrip .highslide-marker {
	position:absolute;
	width:0;
	height:0;
	border-width:0;
	border-style:solid;
	border-color:transparent;
}
.highslide-thumbstrip-horizontal div {
	width:auto;
}
.highslide-thumbstrip-horizontal .highslide-scroll-up {
	display:none;
	position:absolute;
	top:3px;
	left:3px;
	width:25px;
	height:42px;
}
.highslide-thumbstrip-horizontal .highslide-scroll-up div {
	margin-bottom:10px;
	cursor:pointer;
	background:url(graphics/scrollarrows.png) left center no-repeat;
	height:42px;
}
.highslide-thumbstrip-horizontal .highslide-scroll-down {
	display:none;
	position:absolute;
	top:3px;
	right:3px;
	width:25px;
	height:42px;
}
.highslide-thumbstrip-horizontal .highslide-scroll-down div {
	margin-bottom:10px;
	cursor:pointer;
	background:url(graphics/scrollarrows.png) center right no-repeat;
	height:42px;
}
.highslide-thumbstrip-horizontal table {
	margin:2px 0 10px 0;
}
.highslide-viewport .highslide-thumbstrip-horizontal table {
	margin-left:10px;
}
.highslide-thumbstrip-horizontal img {
	width:auto;
	height:40px;
}
.highslide-thumbstrip-horizontal .highslide-marker {
	top:47px;
	border-left-width:6px;
	border-right-width:6px;
	border-bottom:6px solid gray;
}
.highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker {
	margin-left:10px;
}
.dark .highslide-thumbstrip-horizontal .highslide-marker,
.highslide-viewport .highslide-thumbstrip-horizontal .highslide-marker {
	border-bottom-color:white !important;
}
.highslide-thumbstrip-vertical-overlay {
	overflow:hidden !important;
}
.highslide-thumbstrip-vertical div {
	height:100%;
}
.highslide-thumbstrip-vertical a {
	display:block;
}
.highslide-thumbstrip-vertical .highslide-scroll-up {
	display:none;
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:25px;
}
.highslide-thumbstrip-vertical .highslide-scroll-up div {
	margin-left:10px;
	cursor:pointer;
	background:url(graphics/scrollarrows.png) top center no-repeat;
	height:25px;
}
.highslide-thumbstrip-vertical .highslide-scroll-down {
	display:none;
	position:absolute;
	bottom:0;
	left:0;
	width:100%;
	height:25px;
}
.highslide-thumbstrip-vertical .highslide-scroll-down div {
	margin-left:10px;
	cursor:pointer;
	background:url(graphics/scrollarrows.png) bottom center no-repeat;
	height:25px;
}
.highslide-thumbstrip-vertical table {
	margin:10px 0 0 10px;
}
.highslide-thumbstrip-vertical img {
	width:60px;
}
.highslide-thumbstrip-vertical .highslide-marker {
	left:0;
	margin-top:8px;
	border-top-width:6px;
	border-bottom-width:6px;
	border-left:6px solid gray;
}
.dark .highslide-thumbstrip-vertical .highslide-marker,
.highslide-viewport .highslide-thumbstrip-vertical .highslide-marker {
	border-left-color:white;
}
.highslide-viewport .highslide-thumbstrip-float {
	overflow:auto;
}
.highslide-thumbstrip-float ul {
	margin:2px 0;
	padding:0;
}
.highslide-thumbstrip-float li {
	display:block;
	height:60px;
	margin:0 2px;
	list-style:none;
	float:left;
}
.highslide-thumbstrip-float img {
	display:inline;
	border-color:silver;
	max-height:56px;
}
.highslide-thumbstrip-float .highslide-active-anchor img {
	border-color:black;
}
.highslide-thumbstrip-float .highslide-scroll-up div,
.highslide-thumbstrip-float .highslide-scroll-down div {
	display:none;
}
.highslide-thumbstrip-float .highslide-marker {
	display:none;
}

最後就是特效所需要的圖片,大家從Highslide插件中提取下就好了,CSS代碼所指向的圖片文件夾是以graphics命名,放在主題根目錄下就OK了,新建JS和css命名分別為highslide.css和highslide.js,這個大家同樣可以根據自己的實際情況更改下,不過更改後記得CSS代碼要重新指向哦,哦也,到底基本就完成搞定了,寫起來比較麻煩,其實還是挺簡單,喜歡折騰的大家可以試試!
到此,基本就完成了,大家可以動手嘗試試試,Over,收工!