Home > Web Front-end > JS Tutorial > Backend left management menu code implemented by js_javascript skills

Backend left management menu code implemented by js_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 15:39:48
Original
1835 people have browsed it

The example in this article describes the background left management menu code implemented in js. Share it with everyone for your reference. The details are as follows:

This is a perfect backend left management menu. In terms of style, it seems to be made by professionals. The style is fresh and the operation is practical. It is most suitable to be used in WEB management systems or in website backend management. .

The screenshot of the running effect is as follows:

The online demo address is as follows:

http://demo.jb51.net/js/2015/js-left-main-menu-style-codes/

The specific code is as follows:

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>后台左侧菜单<HEAD>

<META http-equiv=Content-Type content="text/html; charset=gb2312">

<style>

BODY {

 MARGIN: 0px

}

P {

 MARGIN: 0px

}

BODY {

 COLOR: #000; BACKGROUND-COLOR: #fff

}

BODY {

 FONT-SIZE: 12px; LINE-HEIGHT: 150%; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"

}

TABLE {

 FONT-SIZE: 12px; LINE-HEIGHT: 150%; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"

}

INPUT {

 FONT-SIZE: 12px; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"

}

SELECT {

 FONT-SIZE: 12px; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"

}

TEXTAREA {

 FONT-SIZE: 12px; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"

}

A:link {

 COLOR: #036; TEXT-DECORATION: none

}

A:visited {

 COLOR: #036; TEXT-DECORATION: none

}

A:hover {

 COLOR: #f60; TEXT-DECORATION: underline

}

A.menuChild:link {

 COLOR: #036; TEXT-DECORATION: none

}

A.menuChild:visited {

 COLOR: #036; TEXT-DECORATION: none

}

A.menuChild:hover {

 COLOR: #f60; TEXT-DECORATION: underline

}

A.menuParent:link {

 COLOR: #000; TEXT-DECORATION: none

}

A.menuParent:visited {

 COLOR: #000; TEXT-DECORATION: none

}

A.menuParent:hover {

 COLOR: #f60; TEXT-DECORATION: none

}

TABLE.position {

 WIDTH: 100%

}

TR.position {

 HEIGHT: 25px; BACKGROUND-COLOR: #f4f7fc

}

TD.position {

 BORDER-RIGHT: #adceff 1px solid; PADDING-LEFT: 20px; BORDER-BOTTOM: #adceff 1px solid

}

TABLE.listTable {

 WIDTH: 98%; BACKGROUND-COLOR: #b1ceee

}

TR.listHeaderTr {

 FONT-WEIGHT: bold; HEIGHT: 25px; BACKGROUND-COLOR: #ebf4fd; TEXT-ALIGN: center

}

TR.listTr {

 HEIGHT: 25px; BACKGROUND-COLOR: #fff; TEXT-ALIGN: center

}

TR.listAlternatingTr {

 HEIGHT: 25px; BACKGROUND-COLOR: #fffdf0; TEXT-ALIGN: center

}

TR.listFooterTr {

 HEIGHT: 30px; BACKGROUND-COLOR: #ebf4fd; TEXT-ALIGN: center

}

TABLE.editTable {

 WIDTH: 98%; BACKGROUND-COLOR: #b1ceee

}

TR.editHeaderTr {

 HEIGHT: 25px; BACKGROUND-COLOR: #ebf4fd

}

TD.editHeaderTd {

 PADDING-LEFT: 50px; FONT-WEIGHT: bold

}

TR.editTr {

 HEIGHT: 30px

}

TD.editLeftTd {

 WIDTH: 150px; BACKGROUND-COLOR: #fffdf0; TEXT-ALIGN: center

}

TD.editRightTd {

 PADDING-LEFT: 10px; BACKGROUND-COLOR: #fff

}

TR.editFooterTr {

 HEIGHT: 40px; BACKGROUND-COLOR: #ebf4fd

}

TD.editFooterTd {

 PADDING-LEFT: 150px

}

</style>

<SCRIPT language=javascript>

 function expand(el)

 {

  childObj = document.getElementById("child" + el);

  if (childObj.style.display == 'none')

  {

   childObj.style.display = 'block';

  }

  else

  {

   childObj.style.display = 'none';

  }

  return;

 }

</SCRIPT>

</HEAD>

<BODY>

<TABLE height="100%" cellSpacing=0 cellPadding=0 width=170

background=images/menu_bg.jpg border=0>

 <TR>

 <TD vAlign=top align=middle>

 <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>

 <TR>

  <TD height=10></TD></TR></TABLE>

 <TABLE cellSpacing=0 cellPadding=0 width=150 border=0>

 <TR height=22>

  <TD style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A

  class=menuParent onclick=expand(1)

  href="javascript:void(0);">关于我们</A></TD></TR>

 <TR height=4>

  <TD></TD></TR></TABLE>

 <TABLE id=child1 style="DISPLAY: none" cellSpacing=0 cellPadding=0

 width=150 border=0>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>公司简介</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>荣誉资质</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>分类管理</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>子类管理</A></TD></TR>

 <TR height=4>

  <TD colSpan=2></TD></TR></TABLE>

 <TABLE cellSpacing=0 cellPadding=0 width=150 border=0>

 <TR height=22>

  <TD style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A

  class=menuParent onclick=expand(2)

  href="javascript:void(0);">新闻中心</A></TD></TR>

 <TR height=4>

  <TD></TD></TR></TABLE>

 <TABLE id=child2 style="DISPLAY: none" cellSpacing=0 cellPadding=0

 width=150 border=0>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>公司新闻</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>分类管理</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>子类管理</A></TD></TR>

 <TR height=4>

  <TD colSpan=2></TD></TR></TABLE>

 <TABLE cellSpacing=0 cellPadding=0 width=150 border=0>

 <TR height=22>

  <TD style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A

  class=menuParent onclick=expand(3)

  href="javascript:void(0);">产品中心</A></TD></TR>

 <TR height=4>

  <TD></TD></TR></TABLE>

 <TABLE id=child3 style="DISPLAY: none" cellSpacing=0 cellPadding=0

 width=150 border=0>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>产品展示</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>最新产品</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>分类管理</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>子类管理</A></TD></TR>

 <TR height=4>

  <TD colSpan=2></TD></TR></TABLE>

 <TABLE cellSpacing=0 cellPadding=0 width=150 border=0>

 <TR height=22>

  <TD style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A

  class=menuParent onclick=expand(4)

  href="javascript:void(0);">客户服务</A></TD></TR>

 <TR height=4>

  <TD></TD></TR></TABLE>

 <TABLE id=child4 style="DISPLAY: none" cellSpacing=0 cellPadding=0

 width=150 border=0>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>客户服务</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>分类管理</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>子类管理</A></TD></TR>

 <TR height=4>

  <TD colSpan=2></TD></TR></TABLE>

 <TABLE cellSpacing=0 cellPadding=0 width=150 border=0>

 <TR height=22>

  <TD style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A

  class=menuParent onclick=expand(5)

  href="javascript:void(0);">经典案例</A></TD></TR>

 <TR height=4>

  <TD></TD></TR></TABLE>

 <TABLE id=child5 style="DISPLAY: none" cellSpacing=0 cellPadding=0

 width=150 border=0>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>分类管理</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>子类管理</A></TD></TR>

 <TR height=4>

  <TD colSpan=2></TD></TR></TABLE>

 <TABLE cellSpacing=0 cellPadding=0 width=150 border=0>

 <TR height=22>

  <TD style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A

  class=menuParent onclick=expand(6)

  href="javascript:void(0);">高级管理</A></TD></TR>

 <TR height=4>

  <TD></TD></TR></TABLE>

 <TABLE id=child6 style="DISPLAY: none" cellSpacing=0 cellPadding=0

 width=150 border=0>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>广告管理</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>访问统计</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>邮件发送设置</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>联系部门</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>用户留言</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>招聘职位</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>应聘人员</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>留言簿</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>产品订购</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>链接管理</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>文件管理</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>信息转移</A></TD></TR>

 <TR height=4>

  <TD colSpan=2></TD></TR></TABLE>

 <TABLE cellSpacing=0 cellPadding=0 width=150 border=0>

 <TR height=22>

  <TD style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A

  class=menuParent onclick=expand(7)

  href="javascript:void(0);">系统管理</A></TD></TR>

 <TR height=4>

  <TD></TD></TR></TABLE>

 <TABLE id=child7 style="DISPLAY: none" cellSpacing=0 cellPadding=0

 width=150 border=0>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>基本设置</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>样式管理</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>栏目管理</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>功能管理</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>菜单管理</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>首页设置</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>管理员列表</A></TD></TR>

 <TR height=4>

  <TD colSpan=2></TD></TR></TABLE>

 <TABLE cellSpacing=0 cellPadding=0 width=150 border=0>

 <TR height=22>

  <TD style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A

  class=menuParent onclick=expand(0)

  href="javascript:void(0);">个人管理</A></TD></TR>

 <TR height=4>

  <TD></TD></TR></TABLE>

 <TABLE id=child0 style="DISPLAY: none" cellSpacing=0 cellPadding=0

 width=150 border=0>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  href="#"

  target=main>修改口令</A></TD></TR>

 <TR height=20>

  <TD align=middle width=30><IMG height=9

  src="images/menu_icon.gif" width=9></TD>

  <TD><A class=menuChild

  onclick="if (confirm('确定要退出吗?')) return true; else return false;"

  href="http://www.jb51.net"

  target=_top>退出系统</A></TD></TR></TABLE></TD>

 <TD width=1 bgColor=#d1e6f7></TD></TR></TABLE></BODY></HTML>

Copy after login

I hope this article will be helpful to everyone’s JavaScript programming.

Related labels:
js
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Where is js written?
From 1970-01-01 08:00:00
0
0
0
js addClass not working
From 1970-01-01 08:00:00
0
0
0
js file code not found
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template