הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   מישהו יכול להגיד לי מה הקוד ב- javascript? (https://hosts.co.il/forums/showthread.php?t=16302)

Tal.M 20-02-06 20:46

מישהו יכול להגיד לי מה הקוד ב- javascript?
 
איל אני יכול לעשות ככה שאם אני לוחץ על טקסט אז יפתח מין חלון אפשרויות כמו בפורום VB?
למשל:

אפשרויות
VV
אפשרות 2
VV
אפשרות 3
מקווה שתעזרו לי...

אורי 20-02-06 20:52

תלמד מוובמאסטר..הנה קח לינק למדריך משם:
http://webmaster.org.il/article.asp?id=122
תהנה..

Tal.M 20-02-06 20:54

תודה...אבל אני לא יודע כל כך איך לחבר את כל הקודים שם..
מישהו יוכל להביא לי את הקוד?

אורי 20-02-06 21:00

אתה בטח תבין מה לערוך בקוד הבא:
HTML קוד:

<html>
<head>
<script language="javascript">
function showHideTable(menuId){
    var obj=document.getElementById(menuId)
    obj.style.visibility=(obj.style.visibility=="visible"?"hidden":"visible")
}
</script>

<style>
div.menu
{
position:absolute;
visibility:hidden
}
</style>
</head>
<body>
<table>
    <tr>
        <td>
        <a href="home.html">Home</a>
        </td>
        <td onmouseover="showHideTable('products')" onmouseout="showHideTable('products')">
        <a href="products.html">Products</a><br>
        <div class="menu" id="products">
            <a href="page1.html">prod 1</a><br>
            <a href="page2.html">prod 2</a><br>
            <a href="page3.html">prod 3</a><br>
        </div>
        </td>
        <td onmouseover="showHideTable('contacts')" onmouseout="showHideTable('contacts')">
        <a href="contacts.html">contacts</a><br>
        <div class="menu" id="contacts">
            <a href="mailto:shlomi@www.com">Sales</a><br>
            <a href="mailto:yoav@www.com">Marketing</a><br>
            <a href="mailto:david@www.com">Management</a><br>
        </div>
        </td>
        <td onmouseover="showHideTable('search')" onmouseout="showHideTable('search')">
        <a href="search.html">search</a><br>
        <div class="menu" id="search">
            <a href="search.asp?keyword=book">Books</a><br>
            <a href="search.asp?keyword=block">Building Blocks</a><br>
            <a href="search.asp?keyword=computer">Computers</a><br>
        </div>
        </td>
    </tr>
</table>
</body>
</html>


Tal.M 20-02-06 21:01

ציטוט:

נכתב במקור על ידי אורי
אתה בטח תבין מה לערוך בקוד הבא:
HTML קוד:

<html>
<head>
<script language="javascript">
function showHideTable(menuId){
    var obj=document.getElementById(menuId)
    obj.style.visibility=(obj.style.visibility=="visible"?"hidden":"visible")
}
</script>

<style>
div.menu
{
position:absolute;
visibility:hidden
}
</style>
</head>
<body>
<table>
    <tr>
        <td>
        <a href="home.html">Home</a>
        </td>
        <td onmouseover="showHideTable('products')" onmouseout="showHideTable('products')">
        <a href="products.html">Products</a><br>
        <div class="menu" id="products">
            <a href="page1.html">prod 1</a><br>
            <a href="page2.html">prod 2</a><br>
            <a href="page3.html">prod 3</a><br>
        </div>
        </td>
        <td onmouseover="showHideTable('contacts')" onmouseout="showHideTable('contacts')">
        <a href="contacts.html">contacts</a><br>
        <div class="menu" id="contacts">
            <a href="mailto:shlomi@www.com">Sales</a><br>
            <a href="mailto:yoav@www.com">Marketing</a><br>
            <a href="mailto:david@www.com">Management</a><br>
        </div>
        </td>
        <td onmouseover="showHideTable('search')" onmouseout="showHideTable('search')">
        <a href="search.html">search</a><br>
        <div class="menu" id="search">
            <a href="search.asp?keyword=book">Books</a><br>
            <a href="search.asp?keyword=block">Building Blocks</a><br>
            <a href="search.asp?keyword=computer">Computers</a><br>
        </div>
        </td>
    </tr>
</table>
</body>
</html>


אממ תודה רבה אבל אני מתכוון בול כמו פה בהוסטס לא שאני שם את העכבק הוא מוריד רק שאינ לוחץ

meshuga 20-02-06 21:16

אפשר קוד? אפשר סקריפט? לא!
נעול + אזהרה.
יום אחלה לכולם.


כל הזמנים הם GMT +2. הזמן כעת הוא 14:47.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ