Results 1 to 7 of 7

Thread: Picture button to text button with class-style

  1. #1
    Join Date
    May 2014
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Picture button to text button with class-style

    1) Script Title: Ultimate Fade-in slideshow

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.htm

    3) Describe problem:

    Hello

    Currently I'm using the Ultimate Fade-in slideshow on my website, and I have been using a picture to trigger the slideshow to start. However, I would like to replace the picture I'm using with a simple text. I'm running a Joomla website and I use a specific "class" for my links, which I also would like to use as the trigger for the slideshow.
    I'm not very experienced with codes, so I cannot figure out how to do it - I'm hoping you guys here can help me out with this little issue.

    Website: http://lrhr.dk/flyt-dig
    You can see the picture with the following text: "Forstyr ham". I would like to have this "button" as text instead of a picture.

    If you look at the contact page on the website (http://lrhr.dk/kontakt) you can see the text button with the following text: "Sådan finder du os". This is made with class="button" code, and I would like to have it just like that on the other page with the picture button.

    I hope you can help me with this and the explanation is understandable

    Thanks in advance!

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Try to replace
    Code:
    <a id="flytDig" name="flytDig" href="javascript:startShow();"><img src="/images/slideshowflyt_forstyrham.jpg" alt="" /></a>
    with:
    Code:
    <a class="button" id="flytDig" name="flytDig" href="javascript:startShow();"><strong>Forstyr ham</strong></a>

  3. The Following User Says Thank You to molendijk For This Useful Post:

    joac1424 (09-29-2015)

  4. #3
    Join Date
    May 2014
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I am having some trouble with it.. It was working perfectly when I pasted the code you gave me, but when I update the page nothing happens when I want to start the slideshow. How can that be?
    Last edited by joac1424; 09-29-2015 at 05:52 PM.

  5. #4
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    There's no action associated with your link. the source code (line 285) is as follows:

    Code:
    <a id="flytDig" class="button" name="flytDig"><strong>Forstyr ham</strong></a>
    Where is the 'href' attribute?

  6. The Following User Says Thank You to styxlawyer For This Useful Post:

    joac1424 (09-29-2015)

  7. #5
    Join Date
    May 2014
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by styxlawyer View Post
    There's no action associated with your link. the source code (line 285) is as follows:

    Code:
    <a id="flytDig" class="button" name="flytDig"><strong>Forstyr ham</strong></a>
    Where is the 'href' attribute?
    Thanks I see that is missing.
    Here is the weird thing. When I paste the exact code provided and save the page, it's saved. But if I go to the editor again it has automatically removed the href attribute. I don't understand how it can do that... Do any of you know how that can be?

    Anyway, I have also tried to make the button bigger by increasing font size with the editor, but it's not working. Is it possible to make the font size bigger in a different way?

    Thank you for the help

  8. #6
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    Your site is built with Joomla!, which means that you have to add an extension to add JavaScript code. Have a look at this link.

    If you don't use an extension the JavaScript will be deleted. That is standard behaviour for a Joomla! site.

  9. #7
    Join Date
    May 2014
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thank you very much for your help - I really appreciate it!
    I have looked at the extension you link to, but I can't figure out how to use it for this. I'm making the javascript in a Joomla! article with JCE editor. The JCE editor should be able to handle javascripts (i have followed this guide here: https://www.joomlacontenteditor.net/...oved-on-saving) and it still doesn't work, so I don't know what is wrong, however it's working if I don't edit anything on the page :P

    I don't know if you can solve the Joomla javascript issue - dont spend too much time, because I will live with the solution as it is now if it's too complicated to fix it and do it the right way.

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2013, 10:52 PM
  2. Lightbox download picture button
    By ascon in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 10-07-2011, 04:09 AM
  3. Replies: 3
    Last Post: 01-12-2009, 09:53 PM
  4. onclick radio button style
    By bigboy99 in forum JavaScript
    Replies: 1
    Last Post: 04-14-2006, 01:34 PM
  5. flashy picture/button
    By IanMarlowe in forum HTML
    Replies: 2
    Last Post: 07-18-2005, 08:22 AM

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
  •