Results 1 to 9 of 9

Thread: Hover Button question??

  1. #1
    Join Date
    Nov 2002

    Hover Button question??

    I am using frames and have a question regarding hover buttons. I created some hover buttons on my left frame which stays there all the time. When I activate the button hyperlink it replaces the left frame page with the link rather than putting the page on the right side where I want it to go. Is the any way that I can make the hover button, when activated, replace the html page in the right side?

    Thanks, Don

  2. #2
    Join Date
    Nov 2002
    <a href="link" target="name of your right frame">click me</a>

    For more info look here
    // Stefan Huszics

  3. #3
    Join Date
    Nov 2002
    Thanks for the reply. I wasn't able to get the Hover button to work using the info you supplied.

    <a href="link" target="name of your right frame">click me</a>
    I tried Inserting it into the code but I guess I don't totally understand it and am not sure exactly where to put it in. Here is what Front Page generates when I create the hover button.

    <pre style="margin-top: 10; margin-bottom: -7">
    <applet code="fphover.class" codebase="../" width="120" height="24">
    <param name="text" value="Button Text">
    <param name="color" value="#000080">
    <param name="hovercolor" value="#0000FF">
    <param name="textcolor" value="#FFFFFF">
    <param name="effect" value="glow">
    <param name="url" valuetype="ref" value="geninfo.html">
    Where would be the proper place to intert the code?
    Thanks, Don

  4. #4
    Join Date
    Nov 2002
    Originally posted by anderdea
    Where would be the proper place to intert the code?
    I don't use frontpage and I have no way to guess what code it uses for that applet.

    In general though, you can read how to name frames in the link I provided.
    Then read the documentation you have for your applet and see how to add the target to it.
    // Stefan Huszics

  5. #5
    Join Date
    Nov 2002
    some time ago i tried to do the same thing with the FrontPage generated hover button. i concluded it could not be done. i created by own hover button using onmouseover and onmouseout. i suggest you do the same. in fact i suggest you quit using all of the FP generated effects as they all have brick walls you will find as you use them.

    try something like this:

    <form name="form1">
    <input style="background-color: #FF0033; color: white; font-weight: bold; width: 150; position: absolute; left: 15; top: 20;"
    type="button" value="Button Text"
    onclick="pur your href here"

    you can play with the colors and other parameters to get what you want. put your link in the onclick statement. there you need to include the target= as noted above by Stefan.

    sorry - not the answer you wanted, but i have been there with FP. it is a great first learning tool, but you outgrow its limitations fast.
    Last edited by Beach Bum; 12-05-2002 at 11:37 PM.

  6. #6
    Join Date
    Nov 2002
    A better way when you want to make your own buttons is to use CSS

    This will eg create buttons

    <div class="button">
    <a href="">text 1</a>
    <a href="">text 2</a>
    <a href="">text 3</a>

    .button {width:150px;}
    .button a {display:block; background:#FF0033; }
    .button a:link {color:white;}
    .button a:hover {background:#029AFE;}

    The big advantage with this is that
    * you can reuse the same buttoneffect on many pages.
    * the links will work even if javascript is not available.
    * If you want to change to eg another "onmouseover" color, you only have to change 1 value in your 1 externally linked CSS file and your entire site will be instantly updated.
    Last edited by Stefan; 12-06-2002 at 11:34 AM.
    // Stefan Huszics

  7. #7
    Join Date
    Nov 2002
    anderdea - there you have two good options, using the button form or a link with CSS. try them both - as they will look different. so it depends on the effect you want.

    but thinking about my earlier post - i do not mean to be negative about FP. using its generated effects is a great way to learn - as proven here with this situation where you want to branch out from its limitations. so when i said you should stay away from its generated effects, what i should have said is you may quickly outgrow them but they are a great way to learn, and a great way to get up and running fast.

  8. #8
    Join Date
    Nov 2002
    Originally posted by Beach Bum
    [B]try them both - as they will look different. so it depends on the effect you want.
    The CSS version can of cource be modified to exactly mimic a form button if you like.
    CSS buttons will also look the same cross OS as well as cross browser. Form buttons will change appearance, especially from 1 OS to another.

    It does however require a little more effort to learn some CSS to work with them compaired to a simple cut and paste form button, but the benefits are quite large
    Also, the CSS you learn can be applied to any other part of your webpage too, not just buttons.
    // Stefan Huszics

  9. #9
    Join Date
    Nov 2002
    Thanks for the help,
    I'll give the CSS option a try this weekend.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.11769 seconds
  • Memory Usage 2,918KB
  • Queries Executed 13 (?)
More Information
Template Usage (33):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (9)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates