کد برای کلیک روی متن و رفتن به فلان سطر

dada_shi

Member
سلام دوستان
کدی میخوام که مثلا من یک فایل 100 صفحه ای دارم که اول صفحه فهرست داره.می خوام طوری باشه که وقتی روی فهرست کلیک میشه خودش پرش کنه به مطلب مورد نظر.اگر کمک کنید ممنون میشم
 

echessdesign

مدیر انجمن طراحی وب
درود بر شما
شما در ابتدا متن مورد نظر خودت رو (که پس از کلیک قرار است آن متن نمایش داده شود)، رو در بین این تگ قرار بده:
HTML:
<a name="NAME">matn</a>

سپس لینک رو بساز:
HTML:
<a href="#NAME">click here</a>

مثال:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
When the name attribute is used, the  element defines a named anchor inside a HTML document.<a href="#echessdesign">click here</a>

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.
<a name="echessdesign"><span style="color:red">
Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.

Named anchor are not displayed in any special way. They are invisible to the reader.When the name attribute is used, the  element defines a named anchor inside a HTML document.</span></a>

Named anchor are not displayed in any special way. They are invisible to the reader.

</body>
</html>
 

جدیدترین ارسال ها

بالا