Results 1 to 3 of 3

Thread: Taking away the links

  1. #1
    Join Date
    Nov 2008
    Posts
    13
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Exclamation Taking away the links

    Hi all, this will be something simple to one of you guys but i am a novice.

    Ok i have recently built a website for a social club i goto, i have used alot of script from dynmatic drive (my saviours) and i have tried to learn as i have gone along. I am having problems with one script and cant figure out how to get rid of the links.

    The site is www.newheadingleyclub.co.uk on the home page i am using the below script to fade pictures in and out, i have taken the links away in the script but when uploaded on mouse over the hand appears as if they are still linked, when pressed the page returns that it has errors on it on the bottom left hand side. is there any way i can stop this so on mouse over it doesnt show as if there is a link. The code i am using is below

    Thanks

    <script language="JavaScript1.1">
    <!--
    //*****************************************
    // Blending Image Slide Show Script-
    // Dynamic Drive (www.dynamicdrive.com)
    // For full source code, visit http://www.dynamicdrive.com/
    //*****************************************



    //specify interval between slide (in mili seconds)
    var slidespeed=3000

    //specify images
    var slideimages=new Array("front of club.png","outsidelesclub.JPG","Function Room 1.jpg","games room1.jpg","winzer 1.jpg","smoking 1.jpg","Ben Behind Bar.jpg")



    var newwindow=0 //open links in new window? 1=yes, 0=no

    var imageholder=new Array()
    var ie=document.all
    for (i=0;i<slideimages.length;i++){
    imageholder[i]=new Image()
    imageholder[i].src=slideimages[i]
    }

    function gotoshow(){
    if (newwindow)
    window.open(slidelinks[whichlink])
    else
    window.location=slidelinks[whichlink]
    }

    //-->
    </script>


    BODY PART

    <a href="javascript:gotoshow()"><img src="front of club.png" name="slide" border=0 style="filter:blendTrans(duration=3)" width=445 height=310></a>

    <script language="JavaScript1.1">
    <!--

    var whichlink=0
    var whichimage=0
    var blenddelay=(ie)? document.images.slide.filters[0].duration*1000 : 0
    function slideit(){
    if (!document.images) return
    if (ie) document.images.slide.filters[0].apply()
    document.images.slide.src=imageholder[whichimage].src
    if (ie) document.images.slide.filters[0].play()
    whichlink=whichimage
    whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
    setTimeout("slideit()",slidespeed+blenddelay)
    }
    slideit()

    //-->
    </script>

  2. #2
    Join Date
    Nov 2008
    Location
    The Netherlands
    Posts
    21
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    The problem is in the first line of the <BODY> tag:

    <a href="javascript:gotoshow()"><img src="front of club.png" name="slide" border=0 style="filter:blendTrans(duration=3)" width=445 height=310></a>

    It uses the <A HREF=""> tag, wich will automaticly turn your images into links. I've tried removing this, and it still works fine if you delete this part, so change the first line into:

    <img src="front of club.png" name="slide" border=0 style="filter:blendTrans(duration=3)" width=445 height=310></a>


    Hope this solves your problem,

    Bruglione
    Last edited by bruglione; 11-17-2008 at 09:18 AM.

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

    djohno24 (11-17-2008)

  4. #3
    Join Date
    Nov 2008
    Posts
    13
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Fantastic its done, Thanks mate

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
  •