Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 15

Discussione: Target

  1. #1

    Target

    allora questo è il pezzo di un java script che sto usando, solo che mi serve farlo caricare in un frame (in html è News) xo sta cosa del target nn me la fa usare qui... come si fa?
    aux1 = insFld(foldersTree, gFld("News", "news.php"))

  2. #2
    Moderatore di JavaScript L'avatar di br1
    Registrato dal
    Jul 1999
    Messaggi
    19,998
    :master: devi "caricare" il pezzo di javascript in un altro frame?
    perdona ma... e che vuol dire?
    Non potresti riformulare la domando aggiungendo qualche particolare, che so, cosa stai cercando di ottenere?

    ciao
    Il guaio per i poveri computers e' che sono gli uomini a comandarli.

    Attenzione ai titoli delle discussioni: (ri)leggete il regolamento
    Consultate la discussione in rilievo: script / discussioni utili
    Usate la funzione di Ricerca del Forum

  3. #3
    nn il java script nel frame, ma la pagina linkata (news.php) nel frame chiamato principale

  4. #4
    Reale_Augello
    Guest

    ...

    Originariamente inviato da HyperSonic2097
    nn il java script nel frame, ma la pagina linkata (news.php) nel frame chiamato principale
    Ehm... non sei stato molto chiaro... :master:

  5. #5
    Allora... ho messo uno script x fare un menu ad albero, questo è il codice.
    • // You can find instructions for this file at http://www.treeview.net

      //Environment variables are usually set at the top of this file.
      USETEXTLINKS = 1
      STARTALLOPEN = 0
      USEFRAMES = 0
      USEICONS = 0
      WRAPTEXT = 1
      PERSERVESTATE = 1


      foldersTree = gFld("", "")
      aux1 = insFld(foldersTree, gFld("News", "news.php"))
      aux1 = insFld(foldersTree, gFld("Archivio News", "javascript:undefined"))
      aux2 = insFld(aux1, gFld("2002", "demoFrameless.html?pic=%22beenthere_europe%2Egif% 22"))
      aux2 = insFld(aux1, gFld("2003", "javascript:undefined"))
      aux1 = insFld(foldersTree, gFld("Anime", "javascript:undefined"))
      aux2 = insFld(aux1, gFld("Sonic Anime", "demoFrameless.html?pic=%22beenthere_europe%2Egif% 22"))
      aux2 = insFld(aux1, gFld("Sonic X", "javascript:undefined"))
      aux1 = insFld(foldersTree, gFld("Beta", "Beta/betazone.HTM"))
      aux1 = insFld(foldersTree, gFld("Chat", "Beta/betazone.HTM"))
      aux1 = insFld(foldersTree, gFld("Challenge", "Beta/betazone.HTM"))
      aux1 = insFld(foldersTree, gFld("Cheats", "Beta/betazone.HTM"))
      aux1 = insFld(foldersTree, gFld("Comics", "Beta/betazone.HTM"))
      aux1 = insFld(foldersTree, gFld("Download", "Beta/betazone.HTM"))
      aux1 = insFld(foldersTree, gFld("Games", "Beta/betazone.HTM"))
      aux1 = insFld(foldersTree, gFld("Immagini", "javascript:undefined"))
      aux2 = insFld(aux1, gFld("Varie", "demoFrameless.html?pic=%22beenthere_europe%2Egif% 22"))
      aux2 = insFld(aux1, gFld("Wallpaper", "javascript:undefined"))
      aux1 = insFld(foldersTree, gFld("Incoming", "Beta/betazone.HTM"))
      aux1 = insFld(foldersTree, gFld("Network", "Beta/betazone.HTM"))
      aux1 = insFld(foldersTree, gFld("Personaggi", "Beta/betazone.HTM"))
      aux1 = insFld(foldersTree, gFld("Forum", "Beta/betazone.HTM"))
      aux1 = insFld(foldersTree, gFld("Mugen", "javascript:undefined"))
      aux2 = insFld(aux1, gFld("Personaggi", "demoFrameless.html?pic=%22beenthere_europe%2Egif% 22"))
      aux2 = insFld(aux1, gFld("Livelli", "javascript:undefined"))
      aux2 = insFld(aux1, gFld("Screenpack", "demoFrameless.html?pic=%22beenthere_europe%2Egif% 22"))
      aux2 = insFld(aux1, gFld("Utility", "javascript:undefined"))
      aux2 = insFld(aux1, gFld("Giuda", "javascript:undefined"))
      aux1 = insFld(foldersTree, gFld("Testi", "javascript:undefined"))
      aux2 = insFld(aux1, gFld("Sonic Adventure", "demoFrameless.html?pic=%22beenthere_europe%2Egif% 22"))
      aux2 = insFld(aux1, gFld("Sonic Adventure2", "javascript:undefined"))
      aux2 = insFld(aux1, gFld("Sonic R", "demoFrameless.html?pic=%22beenthere_europe%2Egif% 22"))
      aux2 = insFld(aux1, gFld("Sonic X", "javascript:undefined"))
      aux2 = insFld(aux1, gFld("Sonic CD", "javascript:undefined"))
      aux1 = insFld(foldersTree, gFld("Music", "Beta/betazone.HTM"))
      aux1 = insFld(foldersTree, gFld("Video", "Beta/betazone.HTM"))
      aux1 = insFld(foldersTree, gFld("Staff", "Beta/betazone.HTM"))
      aux1 = insFld(foldersTree, gFld("Links", "Beta/betazone.HTM"))

    io visto che ho un sito cn un frame nel mezzo dove vengono caricate le pagine, voglio che la pagina linkata venga caricata li, nel frame chiamato Principale...

  6. #6
    ah, non state a far caso ai link che sono sballati...

  7. #7
    Reale_Augello
    Guest

    Nella...

    ... pagina http://www.treeview.net/treemenu/ins...ons.asp#config viene spiegato come impostare il target dei link.

    Ciao !

  8. #8
    Nn ci ho capit niente...

    il frame che ho io si chiama Principale, che devo mettere?

  9. #9
    • The configuration files (demo*Nodes.js) in the downloaded ZIP have an initial section where some global variables are set (described above) and then a section for the actual creation of folders and links. Here we describe those tree-construction commands. The examples given are taken from the demoFrameset.html example.

      1. Create the root folder. Use this command:
      foldersTree = gFld("Demo", "demoFramesetRightFrame.html")
      The function gFld takes a name and an optional URL, and returns the folder. You can give any name to your root folder and to the other folders inside of it. Note how even some formatting (italics) was used in the example above. You can also add an IMG tag to place a small icon in the folder name (for example a "new!" icon.)

      The URL must either be just a file name (for example: demoFramesetRightFrame.html) or an whole URL complete with protocol (for example: http://www.treeview.net/treemenu/dem...ere_europe.gif).

      To learn more about gFld, see the section below "The optional link of the folder icon."

      2. Place folders inside other folders by using the function 'insFld([parent folder], [child folder])'. For example:
      aux1 = insFld(foldersTree, gFld("Europe", "http..."))

      3. To create a document link use the function 'gLnk'. It takes three arguments:
      Target:
      'R' opens in the right frame (a frame named basefrm),
      'B' opens in a new window,
      'T' opens in the current browser window, replacing the frameset if one exists,
      'S' opens in the current frame, replacing the tree.
      Note: the function is case sensitive; use uppercase.
      (For more info on the "doc type" argument see the section below named "More about the gLnk function."

      Title: Text to be displayed in the tree for that node. This text can include some simple HTML, such as enclosing formatting tags (I, B, DIV, etc.), or even an IMG tag to place a small icon in the node name (for example: a "new!" icon.)

      Link: URL of the document (may be absolute or relative.) Do not enter other information in this string. Adding a target parameter or an event handler will not work.

      4. To place the document inside the tree use the function 'insDoc([parentfolder], [document link])'.

      Note: If you want to rename some of the files included in the .ZIP, you will have to take in account the file dependencies: you may want to rename demoFramesetRightFrame.html but then you will need to update both demoFramesetNodes.js and demoFrameset.html. The file demoFrameset.html itself (the one most exposed to visitors) can be renamed without any problems with dependencies. Do not rename any other file.

      More about the gLnk function

      The first argument of the gLnk function not only controls the target of the page (right frame, new window, etc.) but may also help in the construction of the link itself. After the character that controls the target (R,B,etc.), add an extra lowercase character to the string. This extra character will specify the protocol to be prepended to the URL. If you do this you may leave the protocol out of the string given in the third argument. Example:
      gLnk("Rh", "Right frame", "www.x.net/y/z.html"))
      These are the protocols the Treeview applet may prepend automatically, if there is interest in keeping the configuration file as small as possible: h: http:// , s: https:// , f: ftp:// , m: mailto: .

    ok, xo se metto aux1 = insFld(foldersTree, gLnk("News", "Right frame", "news.php"))
    mi esce Right Frame al posto di News, e mi apre news.php in una finestra nuova...

  10. #10
    'R' opens in the right frame (a frame named basefrm),
    devo fare
    aux1 = insFld(foldersTree, gLnk("R", "News", "news.php"))
    e che altro per indicargli di aprirlo in principale?se lo lascio così nn va...
    il codice del frame (che non è proprio un frame...cmq) è questo
    • <div id=Layer2
      style="Z-INDEX: 2; LEFT: 197px; WIDTH: 587px; POSITION: absolute; TOP: 154px; HEIGHT: 100%">

      <iframe
      name=principale marginwidth=0 marginheight=0 src="news.php"
      frameborder=0 width=100% scrolling=1 height=1075></iframe>
      </div>

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.