Results 1 to 2 of 2

Thread: Use a div instead two separate frames in the same page

  1. #1
    Join Date
    Jan 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Use a div instead two separate frames in the same page

    Hi..
    I am trying to divide one page in two frames. I am trying to use a div instead of frames...
    The page is a glossary. In the top i want the alphabet with anchors to the different letters in the supposed other frame.. i need to see everytime the glossary on the top, if the user wants to change the letter.

    Thx in advance!
    how can i do that?

  2. #2
    Join Date
    Jan 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    heres the code..the css are in a separate file..

    SQLStmt = "SELECT * FROM Eloan_Glossario ORDER BY Nome"
    RS.Open SQLStmt, Objconn
    Current_Letter = ""
    str0 = "<div class=maindiv>"
    str1 = "<div class=bodydiv>"
    count = 0
    while (not RS.EOF)
    if Current_Letter<>LTrim(RTrim(RS.Fields("Letra"))) then
    Current_Letter=LTrim(RTrim(RS.Fields("Letra")))
    str0 = str0 & "<A href=""default.asp?pag=gloss_fin#" & Current_Letter & """ class=normal> " & Current_Letter & " </A><font class=Login>|<font>"
    if count = 12 then
    str0 = str0 & "<br>"
    count = 0
    else
    count = count + 1
    end if
    str1 = str1 & "<A Name=""#"& LTrim(RTrim(RS.Fields("Letra")))& """>" & VbCrLf
    End if
    str1 = str1 & "<B>" & LTrim(RTrim(RS.Fields("Nome"))) & "</B> - " & LTrim(RTrim(RS.Fields("Texto"))) & "<br><br>" & VbCrLf
    RS.MoveNext
    wend
    Response.Write str0 & "</center><br><br>"
    Response.Write str1 & "</P>"%>
    </p>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •